# ajson

> Asynchronous versions of JSON.parse and JSON.stringify to not block the event loop

Latest version **0.3.5** (published 2018-12-06) · 0 weekly downloads

## Install

```sh
npm install ajson
pnpm add ajson
yarn add ajson
bun add ajson
```

## Health

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

Positive: no vulnerabilities.

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

Negative: insecure dependencies; abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.3.5 |
| Published | 2018-12-06 |
| First published | 2015-04-09 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 0.8 |
| Dependencies | 5 |
| Unpacked size | 13.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Author | Tim Koschützki |
| Maintainers | tim-kos |

## Links

- npm: https://www.npmjs.com/package/ajson
- Repository: https://github.com/tim-kos/ajson
- Issues: https://github.com/tim-kos/ajson/issues
- npm.io page: https://npm.io/package/ajson

## Dependencies (5)

- [async](https://npm.io/package/async.md) 0.9.0
- [blocked](https://npm.io/package/blocked.md) 1.1.0
- [resumer](https://npm.io/package/resumer.md) 0.0.0
- [async-json](https://npm.io/package/async-json.md) git://github.com/ckknight/async-json.git#145bb94b4496e5150c453a9e2e14610f93b0e16f
- [event-stream](https://npm.io/package/event-stream.md) 4.0.1

## Recent versions

- 0.3.5 (latest) — 2018-12-06
- 0.3.4 — 2015-04-14
- 0.3.3 — 2015-04-10
- 0.3.2 — 2015-04-10
- 0.3.0 — 2015-04-10
- 0.2.0 — 2015-04-09
- 0.1.0 — 2015-04-09
- 0.0.2 — 2015-04-09

## README

AJSON
============================

Gives you asynchronous versions of JSON.parse and JSON.stringify to prevent
blocking the event loop too much when you parse and stringify big amounts of data.

Do not yet use AJSON.parse(), as it has a much higher memory footprint than JSON.parse().
The implementation for it will be changed.

# Installation

`npm install --save ajson`

or

* Clone or fork this repo
* Run `npm install .`

# Execution

```
var AJSON = require('ajson');

AJSON.parse("some_json_string", function(err, parsedData) {
  console.log(parsedData);
});

AJSON.stringify(someJsonObject, function(err, stringified) {
  console.log(stringified);
});
```

# TODO

- [ ] include a giant.json file

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