# json_prettify

> Takes javascript objects in any notation and converts them to proper JSON with indentation.

Latest version **2.0.4** (published 2020-04-03) · MIT license · 0 weekly downloads

## Install

```sh
npm install json_prettify
pnpm add json_prettify
yarn add json_prettify
bun add json_prettify
```

Provides the command `json_prettify`.

## 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 | 2.0.4 |
| Published | 2020-04-03 |
| First published | 2017-10-14 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=8 |
| Dependencies | 2 |
| Unpacked size | 30.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | marinewater |
| Maintainers | marinewater |
| Keywords | json, prettify, indentation, object |

## Links

- npm: https://www.npmjs.com/package/json_prettify
- Repository: https://github.com/marinewater/json_prettify
- Homepage: https://github.com/marinewater/json_prettify#readme
- Issues: https://github.com/marinewater/json_prettify/issues
- npm.io page: https://npm.io/package/json_prettify

## Dependencies (2)

- [yargs](https://npm.io/package/yargs.md) ^15.3.0
- [bluebird](https://npm.io/package/bluebird.md) ^3.5.5

## Alternatives

- [@mapbox/jsonlint-lines-primitives](https://npm.io/package/@mapbox/jsonlint-lines-primitives.md) — 5.3M weekly downloads
- [reftools](https://npm.io/package/reftools.md) — 3.5M weekly downloads
- [@hey-api/openapi-ts](https://npm.io/package/@hey-api/openapi-ts.md) — 3.5M weekly downloads
- [@mapbox/geojson-rewind](https://npm.io/package/@mapbox/geojson-rewind.md) — 2.4M weekly downloads
- [turbo-stream](https://npm.io/package/turbo-stream.md) — 1.7M weekly downloads

## Recent versions

- 2.0.4 (latest) — 2020-04-03
- 2.0.3 — 2019-08-25
- 2.0.2 — 2019-08-23
- 2.0.1 — 2019-08-23
- 1.2.4 — 2019-04-13
- 1.2.3 — 2019-02-18
- 1.2.2 — 2018-12-09
- 1.2.1 — 2018-08-12
- 1.2.0 — 2018-06-03
- 1.1.0 — 2017-11-06
- 1.0.5 — 2017-11-06
- 1.0.4 — 2017-10-15
- 1.0.3 — 2017-10-15
- 1.0.1 — 2017-10-14
- 1.0.0 — 2017-10-14

## README

# json_prettify

[![npm version](https://img.shields.io/npm/v/json_prettify.svg)](https://www.npmjs.com/package/json_prettify)
[![Gitlab pipeline status (branch)](https://img.shields.io/gitlab/pipeline/marinewater/json_prettify/master.svg?style=flat-square)](https://gitlab.com/marinewater/json_prettify/pipelines)
[![codecov](https://codecov.io/gh/marinewater/json_prettify/branch/master/graph/badge.svg)](https://codecov.io/gh/marinewater/json_prettify)
[![License](https://img.shields.io/github/license/marinewater/json_prettify.svg)](https://github.com/marinewater/json_prettify/blob/master/LICENSE)
![node](https://img.shields.io/node/v/json_prettify.svg)
[![Greenkeeper badge](https://badges.greenkeeper.io/marinewater/json_prettify.svg)](https://greenkeeper.io/)

Takes javascript objects in any notation and converts them to proper JSON with indendation.

For example:
```shell
$ echo "{foo: 'bar',n:3}" | json_prettify
```
Output:
```json
{
    "foo": "bar",
    "n": 3
}
```
## Installation
```shell
$ npm install -g json_prettify
```

## Usage
```shell
$ json_prettify file.json <options>
```

or

```shell
$ 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

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