1.0.2 • Published 8 years ago

as-json v1.0.2

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

as-json

Returns the stdin in a formatted JSON

Install

npm install -g as-json

Usage example

Imagine you're running a command line and it returns an unformatted json.

Example:

wget -O - -o /dev/null https://raw.githubusercontent.com/Falci/as-json/master/not-formatted-example.json

Returns:

{"simple": "json", "formatted":false}

Now, simply add the | as-json in the flow:

wget -O - -o /dev/null https://raw.githubusercontent.com/Falci/as-json/master/not-formatted-example.json | as-json
{
    "simple": "json",
    "formatted": false
}```
1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago