# fastest-stable-stringify

> Fastest stable deterministic JSON.stringify()

Latest version **2.0.2** (published 2018-05-10) · MIT license · 0 weekly downloads

## Install

```sh
npm install fastest-stable-stringify
pnpm add fastest-stable-stringify
yarn add fastest-stable-stringify
bun add fastest-stable-stringify
```

## 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.2 |
| Published | 2018-05-10 |
| First published | 2018-03-09 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 15.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 6 |
| Maintainers | streamich |
| Keywords | json, stringify, deterministic, hash, stable |

## Links

- npm: https://www.npmjs.com/package/fastest-stable-stringify
- Repository: https://github.com/streamich/fastest-stable-stringify
- Issues: https://github.com/streamich/fastest-stable-stringify/issues
- npm.io page: https://npm.io/package/fastest-stable-stringify

## 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.2 (latest) — 2018-05-10
- 2.0.1 — 2018-05-10
- 1.0.1 — 2018-03-09
- 1.0.0 — 2018-03-09

## README

# fastest-stable-stringify

Deterministic `JSON.stringify()` - fastest stable JSON stringifier. This project combines [fast-json-stable-stringify](https://github.com/epoberezkin/fast-json-stable-stringify) and [fast-stable-stringify](https://github.com/nickyout/fast-stable-stringify) to create the fastest stable JSON stringifier.


## Installation

With [npm](https://npmjs.org) do:

```
npm install fastest-stable-stringify
```

## Usage

```js
var stringify = require('fastest-stable-stringify');
var str = stringify({foo: 'bar'});
```


## Benchmark

To run benchmark

```
node benchmark
```

Results

```
fastest-stable-stringify x 11,629 ops/sec ±0.67% (92 runs sampled)
fast-stable-stringify x 11,352 ops/sec ±0.63% (91 runs sampled)
fast-json-stable-stringify x 10,085 ops/sec ±0.52% (91 runs sampled)
faster-stable-stringify x 8,645 ops/sec ±0.62% (87 runs sampled)
json-stable-stringify x 7,761 ops/sec ±0.61% (86 runs sampled)
The fastest is fastest-stable-stringify
```


## License

[MIT](./LICENSE)

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