1.1.0 • Published 5 years ago

jsonic-cli v1.1.0

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

jsonic-cli

NPM version

simple shell command to call jsonic

Install

$ npm i -g jsonic-cli

Examples

$ echo '[{a:b}]' | jsonic --json
[
  {
    "a": "b"
  }
]
$ echo '[{a:b}]' | jsonic --compact
[{"a":"b"}]
$ echo '[{a:b}]' | jsonic --jsonic
[{a:b}]
$ echo '[{a:b}]' | jsonic --console
[ { a: 'b' } ]

Default is --console style, which is probably color-coded when output is a tty.

Note

I'm not associated with the author of jsonic. I just wanted a cli for it.