1.0.1 • Published 5 years ago
vue-svg-converter v1.0.1
Vue-SVG Converter
vue-svg-converter is a cli tool for converting svg files into wrapped vue components. The created component will be stored alongside the svg when created and will contain template, script and style tags.
The created file will share the same name as the svg and will contain a class injection by default.
NOTE: If setting newlineAttributes to true, it will break lines for attributes if there are 2 or more attributes.
installation
npm i vuesvg -g
Usage
Open menu:
vuesvg
Get Help:
vuesvg help
Using Args:
vuesvg ./my/image.svg 4 true
Args
Arg Name | Required | Default | Type |
---|---|---|---|
svgPath | yes | String | |
spaces | no | 2 | Number |
/n attributes | no | false | Boolean |