2.0.4 • Published 4 years ago

json_prettify v2.0.4

Weekly downloads
3
License
MIT
Repository
github
Last release
4 years ago

json_prettify

npm version Gitlab pipeline status (branch) codecov License node Greenkeeper badge

Takes javascript objects in any notation and converts them to proper JSON with indendation.

For example:

$ echo "{foo: 'bar',n:3}" | json_prettify

Output:

{
    "foo": "bar",
    "n": 3
}

Installation

$ npm install -g json_prettify

Usage

$ json_prettify file.json <options>

or

$ cat file.json | json_prettify <options>

Options

  • -o output.json or --out file.json write output to file
  • -s <number> or --spaces <number> number of spaces for indentation
  • --help help text
2.0.4

4 years ago

2.0.3

5 years ago

2.0.2

5 years ago

2.0.1

5 years ago

1.2.4

5 years ago

1.2.3

5 years ago

1.2.2

5 years ago

1.2.1

6 years ago

1.2.0

6 years ago

1.1.0

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago