npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

cedp-font

v1.0.2

Published

cedp common webfont

Readme

CEDP通用的WebFont

cedp-font是在 FontAwesomeEIcons 两套 WebFont 库基础上的业务系统定制。

src/cedp.json 是业务定制的font在IcoMoon创建的项目配置文件。

src/font-unicode-mapping.json 是各个定制图标对应的unicode

构建方式

  1. 执行命令npm install安装依赖
  2. 执行命令npm run build输出字体文件到 fonts/

使用方式

edp install cedp-fontnpm i cedp-font --save

注册字体less示例

@font-face {
    .eicons-font-face(
        "Jingyi", // 新注册的字体family
        "node_modules/cedp-font/fonts/cedp-webfont",
        "1.0.0"
    );
}

.eicons-font-style() {
    font-family: Jingyi, EIcons, FontAwesome; // Webfont使用的字体以及优先级
    .eicons-common-style();
}

维护方式

icon定制需求发生时,操作步骤如下

  1. src/fonts/ 下增加/删除/修改 SVG 文件
  2. 打开 https://icomoon.io/app/#/projects
  3. 点击 Import Project 导入当前项目配置文件
  4. 点击 Load 进入项目的字体配置界面
  5. 按照需求 增加/删除/修改 字体图标
  6. 点击 Generate font 进入字体配置界面
  7. 修改字体图标unicode编码
  8. 回到 https://icomoon.io/app/#/projects
  9. 点击 Download 下载新的项目配置文件
  10. 将新的项目配置文件更新到 cedp-font

维护原则

尺寸

为了保持风格一致,新增 SVG 文件需要进行预处理

  1. 参考 http://fontawesome.io/icons/ 对应字体图标以 font-size: 4em 时的实际高度作为画布尺寸
  2. SVG 在画布中的垂直方向定位统一为垂直居中
  3. 水平方向定位与 FontAwesomeEIcons 的对应字体图标保持一致
  4. 字体留白比例与 FontAwesomeEIcons 的对应字体图标保持一致

编码

为了保证业务定制的字体图标可以覆盖已有字体图标库的效果,在 IcoMoon 操作步骤第7步填写的unicode必须与已有字体图标库的对应编码保持一致。

相似图标的编码优先级为 EIcons > FontAwesome

其他

如新增字体图标不在已有字体范围,则统一参考以下原则

  1. 宽度56px,高度56px作为画布尺寸
  2. 垂直居中
  3. 水平居中
  4. 上下左右各至少有5px的留白
  5. 编码不得与 FontAwesomeEIcons 所有已存在字体图标的unicode冲突