svgson-cli
<p align="center"> <img alt="svgson" title="svgson" src="https://cdn.rawgit.com/elrumordelaluz/svgson/7883b450/logo.svg" width="450"> </p>
Last updated a year ago by elrumordelaluz .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install svgson-cli 
SYNC missed versions from official npm registry.

svgson

cli

CLI version of svgson

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

Current Tags

  • 1.1.1                                ...           latest (a year ago)

3 Versions

  • 1.1.1                                ...           a year ago
  • 1.1.0                                ...           2 years ago
  • 1.0.0                                ...           2 years ago
Maintainers (1)
Downloads
Today 0
This Week 2
This Month 3
Last Day 0
Last Week 1
Last Month 4
Dependencies (4)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |