@aleclarson/json-stream
v0.1.22
Published
Streaming JSON parser in Javascript for Node.js, Deno and the browser
Readme
@aleclarson/json-stream
Fork of @streamparser/json-whatwg
The purpose of this fork is to avoid module resolution issues that prevented certain types from working in TypeScript.
Changelog
0.1.21
Added the
ObjectParserclass, which is similar toJSONParserexcept it emits root-level objects/arrays that are line-delimited by default. Those objects/arrays are statically typed, but not validated at runtime.for await (const object of stream.pipeThrough( new ObjectParser<MyObject | MyArray>() )) { // object is either MyObject or MyArray }
0.1.20
- Compiled to ESM only.
- Removed the
exportsfield. - The
@streamparser-jsonpackage is bundled. - Removed any exports not accessible from a
JSONParserinstance. - Replaced all type namespaces with direct type exports.
- Source code is excluded from NPM artifact.
