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 🙏

© 2024 – Pkg Stats / Ryan Hefner

@rushable/icon2

v0.0.6

Published

A react library developed with dumi

Downloads

10

Readme

@rushable/icon2

1. 对于不需要特殊定义颜色并且是正方形的 icon,采用自动生成 React 组件的方式

  1. 按照 icon 分类命名 svg 文件名称,名称格式为 xxx-xxx 这种,均已小写字母开头
  2. 将修改好名称的 svg 文件夹放到 source 目录
  3. 执行 npm run compiler 命令,然后在 src/auto_icons 目录下就会生成相应的 React 组件, compiler 代码借鉴自 icon-garden
  4. 在 docs 编写对应 icon 预览
  5. 发布 npm: npm publish, 部署 site: npm deploy

2. 对于需要特殊定义的 icon(如 payment),采用手动创建 React 组件

  1. 在 manual_icons 目录下面根据 icon 类别进行手动创建组件,和老的 @rushable/icons 创建方式一致
  2. 将创建好的组件在 src/index.ts 里面导出
  3. 在 docs 编写对应网站预览代码
  4. 发布 npm: npm publish, 部署 site: npm deploy

3. svg tsx 由于某些属性为短横线连接导致 dev 会 warning

  1. 在组件生成完成后执行 npm run lint 观察是否有报错
  2. 执行 npm run lint:fix