Skip to content

Latest commit

 

History

History
36 lines (22 loc) · 879 Bytes

README.md

File metadata and controls

36 lines (22 loc) · 879 Bytes

中文 | English

npm

功能:

  • 将SVG文件转换成React组件文件。

  • 在浏览器中预览SVG文件,并提供颜色选项,以生成React组件的使用代码。

    • image

安装

NPM

npm add svg-to-component-cli

使用

  • 将SVG文件转换成React组件文件
> npm svg-to-component parse ./my-svg-files-path
  • 预览SVG文件
> npm svg-to-component preview ./my-svg-files-path

API

npm svg-to-component -h