obj-json
v0.0.5
Published
A tool to help you convert javascript object to json on command line.
Downloads
2
Maintainers
Readme
Readme
A tool to help you convert javascript object to json on command line.
Installation
npm i -g obj-json
Usage:
$ echo "{a: 10, b: 20, name: 'sahil'}" | obj-json
# Output: {"a":10,"b":20,"name":"sahil"}
- FYI: NOW I CAN USE
jq
AS WELL:
$ echo "{a: 10, b: 20, name: 'sahil'}" | obj-json | jq
# Output:
{
"a": 10,
"b": 20,
"name": "sahil"
}