0.0.5 • Published 2 years ago

obj-json v0.0.5

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

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"
}