@cubing/icons

中文文档
3.0.5发布于 2025/08/12MITTypeScriptES Module零依赖近 30 天下载 3470

Cubing Icons and Fonts

原始使用文档
文档目录6 节
  1. Documentation and demo
  2. Development
  3. Build the project
  4. Using nix for development (optional)
  5. Upgrading/changing dependencies
  6. Releasing

Cubing icons and fonts

Documentation and demo

https://icons.cubing.net

Development

Most development is simply adding/changing existing SVG files under the ./src/svg directory. If you haven't dealt with SVG files before, check out Inkscape.

If you want to actually build a font or CSS locally, you'll need some more tooling.

Build the project

You'll need bun to install development dependencies and build the project. Either install bun with your preferred package manager, or use our Nix-powered dev shell.

Check out and build the project as follows:

git clone https://github.com/cubing/icons && cd icons
make

Files are build into the ./dist directory.

Using nix for development (optional)

We provide a nix shell that you can activate with nix develop.

Upgrading/changing dependencies

package-lock.json is the source of truth. Use npm to change dependencies (if all you're doing is installing dependencies, you don't need npm).

As soon as nix gets support for bun lockfiles, we can remove this quirk.

Releasing

To bump the version and deploy to npmjs.org:

npm version [major|minor|patch] -m "Release description"
git push --follow-tags
make publish

CDN

Note that cdn.cubing.net requires an explicit version bump and deployment in order to pick up the new @cubing/icons version:

git clone https://github.com/cubing/cdn.cubing.net && cd cdn.cubing.net
# Requires SSH and optional Fastly credentials to deploy
make roll-@cubing/icons

版本与发布记录

@cubing/icons 共发布 23 个版本,首次发布于 2020/10/14;过去 12 个月发布了 0 个版本。

版本发布日期距今
3.0.5latest2025/08/121.2 年前
3.0.42025/03/301.6 年前
3.0.32025/01/251.8 年前
3.0.22025/01/251.8 年前
3.0.12025/01/221.8 年前
3.0.02025/01/091.8 年前

关于 @cubing/icons 的常见问题

@cubing/icons 是什么?

Cubing Icons and Fonts

如何安装 @cubing/icons?

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

@cubing/icons 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

@cubing/icons 支持 ESM 还是 CommonJS?

以 ES Module 形式发布,推荐使用 import 引入。在 CommonJS 项目中,Node.js 20.19+ / 22.12+ 可以直接 require() 不含顶层 await 的 ES Module,更早的版本需要改用动态 import()。

@cubing/icons 可以商用吗?

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

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

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

@cubing/icons 还在维护吗?

最新版本 3.0.5 发布于 2025/08/12(1.2 年前);至今共发布 23 个版本,其中过去 12 个月发布了 0 个;首次发布于 2020/10/14。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。