@cypress/icons

中文文档
0.7.0发布于 2018/05/30MITCommonJS零依赖近 30 天下载 2618

Cypress Icons

此软件包已被标记为弃用

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

原始使用文档
文档目录6 节
  1. Installing
  2. API
  3. Linking while Developing
  4. Developing
  5. Testing
  6. Changelog

Cypress Icons

The latest versions of the icons are distributed on npm as ./dist.

The public API will always reference these files.

./dist is not checked into source control.

Installing

npm install @cypress/icons

API

icons = require("@cypress/icons")

## get the absolute path to default favicon
icons.getPathToFavicon( *filename* )
icons.getPathToFavicon("favicon-blue.ico")
## => /Users/.../dist/favicon/favicon-blue.ico

## get the absolute path to tray icon
icons.getPathToTray( *filename* )
icons.getPathToTray("mac-normal-red.png")
## => /Users/.../dist/tray/mac-normal-red.png

## get the absolute path to icon
icons.getPathToIcon( *filename* )
icons.getPathToIcon("[email protected]")
## => /Users/.../dist/icons/[email protected]

Linking while Developing

cd cypress-icons
npm link
cd ../path/to/your/project
npm link cypress-icons

Developing

## modify files in ./src
<hack hack hack>

## run build to dump to ./dist
npm run build

## commit src
git commit -am 'updated icons'

## publish new version
npm run release

Testing

npm test

Changelog

0.7.0 - (05/29/18)

  • add inverse logos
  • ignore src and test for npm module

0.6.0 - (09/20/17)

  • added cypress.ico icons for windows
  • remove coffeescript dep

0.5.4 - (05/29/17)

  • rename package

0.5.3 - (05/29/17)

  • remove coffee-script, use es6

0.5.2 - (04/20/17)

  • bump cypress-coffee-script and releaser dep

0.5.1 - (04/20/17)

  • renamed package, use cypress-coffee-script

0.5.0

  • added inverse logo

0.4.1

  • fix failing iconset build

0.4.0

  • added new method to get path to logo

0.3.2

  • added logo folder with black cypress logo

0.3.1

  • updated node version to 5.10.0
  • bump dep

0.3.0

  • added new icon sizes: 48@2x, 48, 38, 19

0.2.1

  • updated red and blue tray icons to be darker shade
  • updated red and blue favicons to be darker shade

0.2.0

  • scoped package to cypress org
  • updated favicon api to take path argument

0.1.0

  • initial release with updated icons

版本与发布记录

@cypress/icons 共发布 6 个版本,首次发布于 2017/04/21;过去 12 个月发布了 0 个版本。

版本发布日期距今
0.7.0latest2018/05/308 年前
0.6.02017/09/219 年前
0.6.0-dev.20170920.132117dev2017/09/219 年前
0.5.42017/05/309 年前
0.5.22017/04/219 年前
0.5.12017/04/219 年前

关于 @cypress/icons 的常见问题

@cypress/icons 是什么?

Cypress Icons注意:该包已被作者标记为弃用——Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

如何安装 @cypress/icons?

在项目目录运行 npm install @cypress/icons,或使用 pnpm add / yarn add / bun add。

@cypress/icons 支持 TypeScript 吗?

该包的 package.json 没有声明类型入口。需要类型提示时,可以在 npm 上查找社区维护的 @types/cypress__icons 是否存在。

@cypress/icons 支持 ESM 还是 CommonJS?

以 CommonJS 形式发布,可以直接 require();在 ES Module 项目中也可以用 import 引入(Node.js 会把 module.exports 作为默认导出)。

@cypress/icons 可以商用吗?

@cypress/icons 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@cypress/icons 的下载量有多少?

根据 npm 官方下载统计,@cypress/icons 在 2026/10/11 – 2026/11/09 这 30 天内被下载 2,618 次,日均约 87 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@cypress/icons 还在维护吗?

最新版本 0.7.0 发布于 2018/05/30(8 年前);至今共发布 6 个版本,其中过去 12 个月发布了 0 个;首次发布于 2017/04/21。作者已将其标记为弃用,新项目建议寻找替代方案。