- Notifications
You must be signed in to change notification settings - Fork2
Commonly used stream patterns for Web Streams API and NodeJS Streams
License
NotificationsYou must be signed in to change notification settings
willfarrell/datastream
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Commonly used stream patterns for Web Streams API and NodeJS Stream.
If you're iterating over an array more than once, it's time to use streams.
Warning: This library is in Alpha, and will contain breaking changes as modules mature to have consistent usage patterns.
Documentation
Extend Modules
- core
- merge - connect multiple readable into one stream (see fetch)
- core
New Modules
- json
- parse -https://github.com/jimhigson/oboe.js /https://github.com/dscape/clarinet
- parseChunk (json-stream notation) - fastify/secure-json-parse
- format
- formatChunk (json-stream notation) - fastify/fast-json-stringify
- https://github.com/uhop/stream-json
- https://github.com/creationix/jsonparse
- https://github.com/dominictarr/JSONStream
- https://www.npmjs.com/package/json-stream - string chunk -> look for \n -> JSON.parse
- json
Maybe Future
compression
- zstd - simple-zstd (NodeStream)
- protobuf - protobufjs / pbf -https://buf.build/blog/protobuf-es-the-protocol-buffers-typescript-javascript-runtime-we-all-deserve
encryption
- encrypt [transform]
- decrypt [transform]
ipfs
- readable - get
- writable - addhttps://github.com/ipfs/js-ipfs/blob/master/docs/core-api/FILES.md#ipfsadddata-optionshttps://github.com/ipfs/js-datastore-s3/blob/master/examples/full-s3-repo/index.js//https://github.com/ipfs-examples/js-ipfs-examples/blob/master/examples/browser-add-readable-stream/src/index.js
xml
- parse -https://github.com/isaacs/sax-js / KeeeX/sax-js
- format
type
- pg - obj to db types
About
Commonly used stream patterns for Web Streams API and NodeJS Streams
Topics
Resources
License
Code of conduct
Stars
Watchers
Forks
Packages0
No packages published