# json-pretty

> Similar to the https://www.npmjs.com/package/json-prettify CLI tool, except you can require this one in your projects.

Latest version **0.0.1** (published 2015-04-10) · 0 weekly downloads

## Install

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

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; low quality score; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.1 |
| Published | 2015-04-10 |
| First published | 2015-04-10 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 4 |
| Maintainers | michielbdejong |

## Links

- npm: https://www.npmjs.com/package/json-pretty
- Repository: https://github.com/michielbdejong/json-pretty
- Issues: https://github.com/michielbdejong/json-pretty/issues
- npm.io page: https://npm.io/package/json-pretty

## Recent versions

- 0.0.1 (latest) — 2015-04-10
- 0.0.0 — 2015-04-10

## README

# Simple module for producing nice JSON.

Similar to the https://www.npmjs.com/package/json-prettify CLI tool, except you can require this
one in your projects.

It also alphabetizes keys, which is useful for producing meaningful diffs.

If there are JSON files in your project, it makes sense to normalize them with this module, to
make version control easier.

# Usage

````js
> var jsonStringify = require('json-pretty');
undefined
> jsonStringify({a: 'b'})
'{\n  "a": "b"\n}'
> 
````

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