quick-pretty

0.3.1 • Public • Published

Quick pretty

qp is a simple cli tool that takes one argument, a JSON object, and pretty prints it. It's great for when you're working locally on a program that outputs minimized JSON, but you want to quickly see the JSON object pretty printed.

Usage

> quick-pretty '{"foo":"bar","bazz":"buzz"}'

Outputs

{
    "foo": "bar",
    "bazz": "buzz"
}

Optional Usage

> quick-pretty '{"foo":"bar","bazz":"buzz"}' bazz

Outputs

{
    "foo": "bar"
}

Pipe stringified JSON output from another program

> echo '{"foo":"bar","bazz":"buzz"}' | quick-pretty

Outputs

{
    "foo": "bar",
    "bazz": "buzz"
}

Readme

Keywords

Package Sidebar

Install

npm i quick-pretty

Weekly Downloads

3

Version

0.3.1

License

MIT

Unpacked Size

1.95 kB

Total Files

3

Last publish

Collaborators

  • dylanbathurst