Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/liammartens/ndjson-stream-parser
https://github.com/liammartens/ndjson-stream-parser
Last synced: 11 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/liammartens/ndjson-stream-parser
- Owner: LiamMartens
- Created: 2023-04-13T21:28:16.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-04-13T21:30:34.000Z (over 1 year ago)
- Last Synced: 2024-11-20T02:16:18.254Z (about 1 month ago)
- Language: TypeScript
- Size: 43 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# NDJSON Stream Parser
Example
```js
import { JsonStreamBuffer } from 'ndjson-stream-parser';const buff = new JsonStreamBuffer();
buff.$e.on('data', console.log);
buff.feed('{"name":"');
buff.feed('Liam"}\n{');
```Output:
```json
{"data": {"name": "Liam"}}
```