# json-strify

> Faster implementation of JSON.stringify

Latest version **0.1.9** (published 2024-06-16) · MIT license · 0 weekly downloads

## Install

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

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.9 |
| Published | 2024-06-16 |
| First published | 2019-05-28 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 7.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | dalisoft |
| Maintainers | dalisoft |
| Keywords | json, stringify, faster |

## Links

- npm: https://www.npmjs.com/package/json-strify
- Repository: https://github.com/dalisoft/json-strify
- Homepage: https://github.com/dalisoft/json-strify#readme
- Issues: https://github.com/dalisoft/json-strify/issues
- npm.io page: https://npm.io/package/json-strify

## Dependencies (1)

- [compile-json-stringify](https://npm.io/package/compile-json-stringify.md) ^0.1.2

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

- 0.1.9 (latest) — 2024-06-16
- 0.1.8 — 2020-07-01
- 0.1.7 — 2019-06-01
- 0.1.6 — 2019-06-01
- 0.1.5 — 2019-06-01
- 0.1.4 — 2019-06-01
- 0.1.3 — 2019-06-01
- 0.1.2 — 2019-05-29
- 0.1.1 — 2019-05-29
- 0.1.0 — 2019-05-28
- 0.0.2 — 2019-05-28
- 0.0.1 — 2019-05-28

## README

# json-strify

Faster implementation of JSON.stringify

_Performance: This library ~50% faster than `JSON.stringify` on larger objects/arrays_

_Note: This library doesn't handle Ciruclar references, instead of just replaces Circular reference to `[Circular]` string, but doesn't throw error_

## Features

- Performant
- Easy
- Auto-schema generating

## Installation

We recommend install via `npm` because of it's cache and flat node modules tree

```bash
npm i json-strify
```

then you able to import to Node.js/Browser easily

```js
// Node.js
const JSONStringify = require('json-strify');

// ES6
import JSONStringify from 'json-strify';
```

## Usage

```ts
JSONStringify(object: any): string
```

## License

MIT

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