0.0.4 • Published 10 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-cliexample
object.js:
{
example: 'foo',
bar: 'baz',
}$ cat object.js | tojson
{
"example": "foo",
"bar": "baz"
}