0.0.4 • Published 8 years ago
obj-to-json-cli v0.0.4
obj to json cli
Convert plain JS objects into JSON on the command line. Uses eval
, so only use it with trusted input.
install
Adds a tojson
command.
$ npm install -g obj-to-json-cli
example
object.js:
{
example: 'foo',
bar: 'baz',
}
$ cat object.js | tojson
{
"example": "foo",
"bar": "baz"
}