Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/falci/as-json
https://github.com/falci/as-json
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/falci/as-json
- Owner: Falci
- License: mit
- Created: 2016-06-30T14:33:00.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-06-30T16:10:33.000Z (over 8 years ago)
- Last Synced: 2024-11-06T08:06:53.455Z (about 2 months ago)
- Language: JavaScript
- Size: 4.88 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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
}```