2.0.4 • Published 5 years ago

json_prettify v2.0.4

Weekly downloads
3
License
MIT
Repository
github
Last release
5 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

5 years ago

2.0.3

6 years ago

2.0.2

6 years ago

2.0.1

6 years ago

1.2.4

6 years ago

1.2.3

6 years ago

1.2.2

6 years ago

1.2.1

7 years ago

1.2.0

7 years ago

1.1.0

8 years ago

1.0.5

8 years ago

1.0.4

8 years ago

1.0.3

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago