1.0.16 • Published 3 years ago

@anzerr/json.stream v1.0.16

Weekly downloads
9
License
MIT
Repository
github
Last release
3 years ago

Intro

GitHub Actions status | publish

Split a streamed json into parsable chunks.

Install

npm install --save git+https://github.com/anzerr/json.stream.git
npm install --save @anzerr/json.stream

Example

const {JsonStream, Parser} = require('json.stream');

let s = new JsonStream();

s.on('data', (chunk) => {
	console.log(JSON.parse(chunk.toString()));
});

let p = new Parser();
console.log(p.push('{"cat":1}{"cat":2}{"cat":3}').process());

s.write('{"cat":1}{"cat":2}{"cat":3}');
1.0.16

3 years ago

1.0.15

4 years ago

1.0.14

5 years ago

1.0.13

5 years ago

1.0.12

5 years ago

1.0.11

5 years ago

1.0.10

5 years ago

1.0.6

6 years ago

1.0.3

6 years ago

1.0.4

6 years ago

1.0.5

6 years ago