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

taro-iconfont-generator

v1.0.4

Published

Taro SVG iconfont component generator - 让Taro也能使用阿里矢量图标库的SVG

Readme

taro-iconfont-generator

Taro3.x SVG iconfont 组件生成器,支持本地SVG、阿里iconfont、阴影自定义等。

安装

npm install taro-iconfont-generator -D
# 或
pnpm install taro-iconfont-generator -D

快速使用

  1. 初始化配置
npx iconfont-init
  1. 生成组件
npx iconfont-taro
  1. 在项目中引入并使用
import IconFont from '你的生成目录/iconfont';

<IconFont name="fuwuzixun" size={80} />
<IconFont name="fuwuzixun" size={80} shadow="#5EB7F588" />
<IconFont name="fuwuzixun" size={80} shadow="0 2px 8px #0003" />

Props

| 属性 | 类型 | 说明 | |----------------|---------------------|----------------------------| | name | string | 图标名称(自动类型提示) | | size | number | 图标尺寸(px) | | color | string | string[] | 图标颜色,支持多色 | | customStyle | React.CSSProperties | 自定义行内样式 | | customClassName| string | 自定义类名 | | shadow | string | 阴影,支持颜色或完整box-shadow |

亮点功能

  • 支持本地SVG和阿里iconfont混合生成
  • 支持自定义阴影(shadow)
  • 支持自定义样式、hover等扩展
  • 生成的组件类型安全、易用

更多高级用法和配置,请参考源码或 issue。