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

yq-icons

v1.0.0

Published

YQ Design 图标库

Readme

yq-icons

YQ Design 图标库,支持 Web Component 和字体图标两种使用方式。

安装

npm install yq-icons
# 或
pnpm add yq-icons

使用方式

1. Web Component (推荐)

适用于 Vue、React、原生 HTML 等任何框架。

// ES Module 引入
import 'yq-icons'
<!-- 直接使用 -->
<yq-icon name="line-home-01" size="24" color="#1890ff"></yq-icon>

属性说明:

| 属性 | 类型 | 默认值 | 说明 | |------|------|--------|------| | name | string | - | 图标名称(必填) | | size | string/number | 1em | 图标尺寸,数字会自动加 px | | color | string | currentColor | 图标颜色 |

2. 字体图标

<link rel="stylesheet" href="yq-icons/iconfont/iconfont.css">

<i class="line-home-01"></i>
<i class="solid-user-01"></i>

3. CDN / Script 标签

<script src="yq-icons/dist/yq-icons.js"></script>

<!-- Web Component 自动注册,直接使用 -->
<yq-icon name="line-home-01"></yq-icon>

图标分类

  • line - 线性图标
  • solid - 面性图标
  • line-fun - 线性趣味
  • solid-fun - 面性趣味
  • glass - 毛玻璃质感

获取图标列表

// 运行时获取所有图标名称
console.log(window.YqIcons.icons)

// 或导入 JSON 文件
import icons from 'yq-icons/icons'

构建产物

| 文件 | 说明 | |------|------| | dist/yq-icons.js | Web Component + 内嵌 SVG Sprite | | dist/sprite.svg | 独立 SVG Sprite 文件 | | dist/icons.json | 图标名称列表 | | iconfont/ | 字体图标文件 |

开发

# 打包全部(Sprite + 字体)
npm run build

# 仅打包 Sprite
npm run build:sprite

# 仅打包字体图标
npm run build:font