https://github.com/twooster/streaming-json-stringifier
https://github.com/twooster/streaming-json-stringifier
Last synced: 4 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/twooster/streaming-json-stringifier
- Owner: twooster
- Created: 2020-09-28T09:03:26.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-09-28T09:08:05.000Z (over 5 years ago)
- Last Synced: 2025-03-01T18:45:17.719Z (over 1 year ago)
- Language: JavaScript
- Size: 1.95 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# streaming-json-stringifier
If you have to JSON-stringify large things, it can block the event loop in
NodeJS. This package allows you to circumvent that by turning `stringify`
into a generator where you can pause computation as desired. This was a POC.
In terms of perf, it is significantly slower than the built-in stringify,
so only use this if event-loop blocking is a real problem.