# prettify-js

> Beautify javascript value to JSON string

Latest version **1.0.1** (published 2017-04-22) · MIT license · 0 weekly downloads

## Install

```sh
npm install prettify-js
pnpm add prettify-js
yarn add prettify-js
bun add prettify-js
```

## 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.1 |
| Published | 2017-04-22 |
| First published | 2017-04-22 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Savan Akbari |
| Maintainers | savanakbari |
| Keywords | json, beautify |

## Links

- npm: https://www.npmjs.com/package/prettify-js
- npm.io page: https://npm.io/package/prettify-js

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

- 1.0.1 (latest) — 2017-04-22
- 1.0.0 — 2017-04-22

## README

# prettify-js


Convert JavaScript value to readable JSON string for terminal/console.


## Install

    $ npm install prettify-js -D


## Examples

```
var beautify = require('prettify-js');

console.log(beautify({hello: 'world', body: 'This is pretty  json' }));

-----

    {
       "hello": "world",
       "body": "This is pretty  json"
    }
```

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