2.0.1 • Published 1 year ago
@tomoeed/j-icon-cli v2.0.1
j-icon-cli
自动将 SVG
图标转换为 Icon 对象的命令行工具
安装
npm install @tomoeed/j-icon-cli --save-dev
使用
j-icon -i svgs -o dist
选项
-i, --input <path> 文件或文件夹路径
-o, --output <path> 文件输出目录
-f, --format 输出文件格式 (默认值: esm umd ts type)
-n, --name 输出文件名称 (默认值: index)
API
const process = require('@tomoeed/j-icon-cli');
process({input: ''});