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

iconfont-tools

v1.7.13

Published

iconfont,小程序彩色图标方案,小程序彩色iconfont

Readme

iconfont-tools

适用于 iconfont 彩色图标的提取

特性

  • 生成原生通用组件 icon
  • 生成夸平台可用的 iconfont-weapp.css 文件
  • 本地生产,也可以远程生成

如何安装

方式一:

需要下载,iconfont 的字体文件包,将其解压


npm i -g iconfont-tools

cd project/asset/font_hiytajitqeu // 进入图标文件所在文件夹

iconfont-tools  // 生成小程序专用文件

方式二:

无需下载字体包,但是需要在 iconfont 生成在线链接


npm i -g iconfont-tools

# 复制在线链接 //at.alicdn.com/t/font_717026_fqwb5om0rvk.js

iconfont-tools --from //at.alicdn.com/t/font_717026_fqwb5om0rvk.js --to ./output/dir-path

参数:

  • --from: iconfont 在线链接
  • --to: 生成目标路径,可以是绝对路径,也可以是相对路径。 dome: /home/chr/project/style ./style

小程序 如何使用

  • 1.直接引用样式
<view class="t-icon t-icon-your-iconName"></view>
  • 2.使用组件 icon

page.json

{
  "usingComponents": {
    "icon": "/path/to-icon/icon"
  }
}

page.wxml

<icon name="IconName" size="{{24}}"></icon>

实现原理

click

演示

img