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

iconfont-super-manager

v1.9.6

Published

iconfont的自动化更新和管理

Downloads

16

Readme

介绍

iconfont-manager是一个可以管理所有iconfont图标库更新的工具。

温馨提醒

毕竟是爬虫,而iconfont网站页面结构可能会有变化,如果出现无法使用的情况,请及时更新或者到GitHub提交issue,我都会尽快解决!

安装

npm i iconfont-manager -g

功能

1. 初始化项目

输入iconfont官网的手机号(若是GitHub账号,绑定手机号即可)与密码,自动执行爬虫脚本,将账号下的所有iconfont图标库的信息爬取并存储在用户目录的.iconfontrc文件(重要,可自行新建),然后修改.iconfontrc文件的filePath属性,设置各个图标库对应的保存地址,也可通过功能5iconfont-manager ui图形化界面管理进行设置。

iconfont-manager init <phoneNumber> <password>

如果只想拉取指定的项目,可以传入第三个参数projectIds,projectIds以逗号分隔

iconfont-manager init <phoneNumber> <password> <projectIds>

{
  "projects": [
    {
      "id": "2936807",
      "name": "仓库系统",
      "user": "18812345678",
      "password": "abc123",
      "filePath": "/Users/wupeng/project/warehouse/src/assets"
    },
    {
      "id": "2291089",
      "name": "门户网站",
      "user": "18812345678",
      "password": "abc123",
      "filePath": "初始化后,这个字段是空的,需要手动设置图标保存的绝对路径或者相对路径"
    }
  ]
}

2. 查看所有图标库

读取用项目目录下的.iconfontrc文件,将所有的iconfont图标库信息通过列表的形式展现。

iconfont-manager ls

3. 更新单个图标库

iconfont-manager update <projectId>

4. 更新多个图标库

iconfont-manager update <projectId...>

5. 图形化界面管理

iconfont-manager ui

6. 更新临时项目

更新.iconfontrc文件中没有的图标库

iconfont-manager updateOne <id> <name> <user> <password> <filePath>

7. 新增项目

项目信息会写入.iconfontrc文件中,同时最后一个参数可以选择是否立即更新图标库

iconfont-manager add <id> <name> <user> <password> <filePath> [immediately]

8. 查看图标库的预览页面

iconfont-manager preview <id>

9. 更新图标库的信息(主要是获取最新的在线链接),只更新不下载,支持多个id

iconfont-manager refresh <id...>

补充说明

支持多用户,可以修改.iconfontrc文件配置即可,如下图例子两个用户手机号不同

{
  "projects": [
    {
      "id": "2936807",
      "name": "仓库系统",
      "user": "18812345678",
      "password": "abc123",
      "filePath": "/Users/wupeng/project/warehouse/src/assets"
    },
    {
      "id": "2291089",
      "name": "另一个用户",
      "user": "18866668888",
      "password": "abc456",
      "filePath": "/Users/wupeng/project/official-website/src/assets"
    }
  ]
}

如果您觉得项目有趣或对您有所帮助,可以点右上角 "Star" 支持一下 谢谢! ^_^