makejson

0.0.1 • Public • Published

makejson

Make JSON from the command line

Installation

[sudo] npm install -g makejson

Usage

$ makejson string foo bar baz
"foo bar baz"
$ makejson array foo bar baz
[
  "foo",
  "bar",
  "baz"
]
$ makejson object foo=foo bar=bar baz=baz
{
  "foo": "foo",
  "bar": "bar",
  "baz": "baz"
}
$ makejson object foo=false bar=true baz=null string="something here" a.b.c.d=100 a.b.c.e=something
{
  "foo": false,
  "bar": true,
  "baz": null,
  "string": "something here",
  "a": {
    "b": {
      "c": {
        "d": 100,
        "e": "something"
      }
    }
  }
}

License

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i makejson

Weekly Downloads

0

Version

0.0.1

License

MIT

Last publish

Collaborators

  • bahamas10