# node-json-minify

> minifies blocks of JSON-like content into valid JSON by removing all whitespace *and* comments

Latest version **3.0.0** (published 2021-12-22) · 0 weekly downloads

## Install

```sh
npm install node-json-minify
pnpm add node-json-minify
yarn add node-json-minify
bun add node-json-minify
```

## 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 | 3.0.0 |
| Published | 2021-12-22 |
| First published | 2014-01-13 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 7.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Kyle Simpson |
| Maintainers | getify |
| Keywords | util, json, minify |

## Links

- npm: https://www.npmjs.com/package/node-json-minify
- Repository: https://github.com/getify/JSON.minify.git#node
- Homepage: https://github.com/getify/JSON.minify/tree/node#readme
- Issues: https://github.com/getify/JSON.minify/issues
- npm.io page: https://npm.io/package/node-json-minify

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

- 3.0.0 (latest) — 2021-12-22
- 2.0.0 — 2021-12-15
- 1.0.0 — 2015-11-11
- 0.1.4-a — 2015-06-15
- 0.1.3-a — 2014-01-13
- 0.1.2-a — 2014-01-13
- 0.1.1 — 2014-01-13
- 0.1.0 — 2014-01-13

## README

# JSON-minify

A port of the `JSON-minify` utility to the JavaScript language (for Node.js).

## Overview

`JSON-minify` minifies blocks of JSON-like content into valid JSON by removing all whitespace *and* JS-style comments (single-line `//` and multiline `/* .. */`).

With `JSON-minify`, you can maintain developer-friendly JSON documents, but minify them before parsing or transmitting them over-the-wire.

## Testing

To run the tests:

```
npm test
```

Or:

```
node tests.js
```

## License

The code and all the documentation are released under the MIT license.

http://getify.mit-license.org/

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