obj-json

0.0.5 • Public • Published

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

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i obj-json

      Weekly Downloads

      0

      Version

      0.0.5

      License

      ISC

      Unpacked Size

      1.29 kB

      Total Files

      3

      Last publish

      Collaborators

      • sahilrajput03