# as-json

> Returns the stdin as a formatted json

Latest version **1.0.2** (published 2016-06-30) · MIT license · 0 weekly downloads

## Install

```sh
npm install as-json
pnpm add as-json
yarn add as-json
bun add as-json
```

Provides the command `as-json`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2016-06-30 |
| First published | 2016-06-30 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Fernando Falci |
| Maintainers | falci |

## Links

- npm: https://www.npmjs.com/package/as-json
- Repository: https://github.com/Falci/as-json
- Homepage: https://github.com/Falci/as-json#readme
- Issues: https://github.com/Falci/as-json/issues
- npm.io page: https://npm.io/package/as-json

## Recent versions

- 1.0.2 (latest) — 2016-06-30
- 1.0.1 — 2016-06-30
- 1.0.0 — 2016-06-30

## 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
}```

---
_Source: https://npm.io/package/as-json · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
