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

pull-icon

v1.1.0

Published

一键拉取 codesign / iconfont icon资源到项目指定目录下

Downloads

1

Readme

pull-icon

一键拉取 codesign/iconfont icon 资源到项目指定目录下

1、一次配置,一劳永逸

2、更高效率,拒绝 CV

3、主流 icon 平台支持,无缝切换

步骤

1、安装

npm install pull-icon --save-dev

2、初始化

执行脚本初始化配置文件,根据项目情况配置平台(platform)、平台资源 url(projectUrl)、目标文件(targetFile)

npx pull-icon init

或者在项目目录下手动(与 package.json 同级)创建 pull-icon.json 配置文件

{
  "platform": "iconfont",                                           // 支持的平台, iconfont | codesign
  "projectUrl": "//at.alicdn.com/t/font_1064889_6cywveqndrg.css",   // 平台下的资源url,如何获取参考「说明」
  "targetFile": "/src/assets/style/iconfont.less"                   // 你期望将拉下来的icon资源文件存放的项目位置
  "iconfontFamily": "iconfont"                                      // codesign 平台下你自定义的iconfont family,默认值iconfont
}

3、在项目下执行脚本拉取资源

npx pull-icon start

或者在项目下配置 package.json script 字段配置自定义脚本

...
"scripts": {
    "ps": "npx pull-icon start",
    "pr": "npx pull-icon reload"
},

说明

  1. 目前支持腾讯 codesign 和阿里 iconfont 设计平台

    pull-icon.json 配置文件说明

    | platform | projectUrl | targetFile | iconfontFamily | | :---------------------------------------: | :----------------------------------------------------------------------------------------------------------: | :------------------------------------------: | :----------------------------------------: | | 腾讯 coDesign | | 你期望将拉下来的 icon 资源文件存放的项目位置 | 你自定义的 iconfont family,默认值 iconfont | | 阿里 iconFont | | 你期望将拉下来的 icon 资源文件存放的项目位置 | -- |

  2. pull-icon 已支持的命令

    | 命令 | 简称 | 说明 | 示例 | | :----- | :--: | :-------------------------------------- | :--------------------- | | init | i | 项目初始化 | npx pull-icon init | | start | s | 开始拉取资源,如资源无更新不拉取(有缓存) | npx pull-icon start | | reload | r | 强制重新拉取资源(无缓存) | npx pull-icon reload |