1.1.1 • Published 5 years ago

svgson-cli v1.1.1

Weekly downloads
4
License
MIT
Repository
github
Last release
5 years ago

Install

npm i -g svgson-cli

Usage

svgson icon.svg --output icon.json

API

 svgson input [options]

input

If specified file or folder with .svg files, otherwise stdin

options

output

Output filename

Type: string Default: stdout Alias: o

pretty

Prettyfied output

Type: boolean Default: false Alias: p

separated

Create separated output files Works only with folder input

Type: boolean Default: false Alias: s

camelcase

Camelcase attributes names

Type: boolean Default: false Alias: c

Example using svgo

svgo --input=svgs/icon-1.svg --output=- | svgson --pretty > icon-1.json

Related

svgson Transform SVG into Object

element-to-path Convert SVG element into path

path-that-svg Convert entire SVG with path

svg-path-tools Tools to manipulate SVG path (d)

License

MIT © Lionel T