svg-vue-cli

1.0.4 • Public • Published

svg-vue-cli

Use to convert svg files in the current directory to vue components or react components, and create a folder to place the converted vue files, providing the entry file (example index.ts).

Installation

Install with npm

npm install svg-vue-cli -g

Usage

# Go to the directory containing the svg file
cd ./svgfolder
# execution instruction(Vue component)
svg-vue
# execution instruction(React component)
svg-react

command line parameter

  • --dirname

    • Used to change the name of the generation directory, the default is icons.

      example: svg-vue --dirname=svgfolder

  • --type

    • Change the file suffix js or ts. The default is ts

      example:svg-vue --type=js

  • --version

    • Viewing the Version Number

      example:svg-vue --version

Readme

Keywords

Package Sidebar

Install

npm i svg-vue-cli

Weekly Downloads

0

Version

1.0.4

License

MIT

Unpacked Size

9.69 kB

Total Files

7

Last publish

Collaborators

  • handsomezyw