# json-stream

> New line-delimeted JSON parser with a stream interface

Latest version **1.0.0** (published 2014-12-18) · MIT license · 0 weekly downloads

## Install

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

## Health

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

Positive: has types package; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2014-12-18 |
| First published | 2012-06-14 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | separate (@types/json-stream) |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51 |
| Author | Maciej Małecki |
| Maintainers | mmalecki, ceejbot, jcrugzz |

## Links

- npm: https://www.npmjs.com/package/json-stream
- Repository: https://github.com/mmalecki/json-stream
- Issues: https://github.com/mmalecki/json-stream/issues
- npm.io page: https://npm.io/package/json-stream

## Recent versions

- 1.0.0 (latest) — 2014-12-18
- 0.2.2 — 2014-10-13
- 0.2.1 — 2014-05-19
- 0.2.0 — 2013-06-05
- 0.1.2 — 2012-11-24
- 0.1.1 — 2012-11-24
- 0.1.0 — 2012-09-18
- 0.0.0 — 2012-06-14

## README

# json-stream [![Build Status](https://secure.travis-ci.org/mmalecki/json-stream.png)](http://travis-ci.org/mmalecki/json-stream)
New line-delimeted JSON parser with a stream interface.

## Installation

    npm install json-stream

## Usage
```js
var JSONStream = require('json-stream');

var stream = JSONStream();

stream.on('data', function (chunk) {
  console.dir(chunk);
});
stream.write('{"a":');
stream.write('42}\n');
stream.write('{"hel');
stream.write('lo": "world"}\n');
```

Will output:
```
{ a: 42 }
{ hello: 'world' }
```

If invalid JSON gets written, it's silently ignored.

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