New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

pull-iconfont

Package Overview
Dependencies
Maintainers
0
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pull-iconfont

```bash npm install pull-iconfont --save-dev ```

latest
npmnpm
Version
3.0.4
Version published
Weekly downloads
0
Maintainers
0
Weekly downloads
 
Created
Source

下载iconfont命令行

npm install pull-iconfont --save-dev

在你的项目中添加配置文件

// 如:项目跟目录添加 .pulliconfontrc.js
module.exports = {
  downloadUrl: '< 下载链接 >',
  cookie: '< 你下载iconfont的cookie >',
  saveDemoFile: false, // 是否保存demo文件
}

输入下面命令下载

pull-iconfont -c ${config-path}

config-path: 配置文件路径

例如:

pull-iconfont -c .pulliconfontrc.js

如果你使用svg图标

.pulliconfontrc.js 可以增加 pickicons 字段来压缩iconfont.js文件,仅挑选出需要icon

// 如:项目跟目录添加 .pulliconfontrc.js
module.exports = {
  downloadUrl: '< 下载链接 >',
  cookie: '< 你下载iconfont的cookie >',
  saveDemoFile: false, // 是否保存demo文件
  iconPrefix: 'icon', // 默认 'icon'
  useSvg: true,
  pickicons: ['user', 'link', ...YourIcons],
}

FAQ

配置文件的参数哪里查看?

alt text

alt text

FAQs

Package last updated on 12 Feb 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts