chao faf16d266e update | 3 months ago | |
---|---|---|
.. | ||
src | 3 months ago | |
.npmignore | 3 months ago | |
CHANGELOG.json | 3 months ago | |
CHANGELOG.md | 3 months ago | |
LICENSE | 3 months ago | |
README.md | 3 months ago | |
jest.config.js | 3 months ago | |
package.json | 3 months ago | |
tsconfig.build.json | 3 months ago | |
tsconfig.json | 3 months ago | |
tsconfig.test.json | 3 months ago |
Some useful extensions for Web Streams API.
Currently it's using web-streams-polyfill because it's hard to load native implementations from both browsers and Node.js. (An experimental implementation using Top Level Await is available in native.ts
, but not exported).
BufferedReadableStream
Allowing reading specified amount of data by buffering incoming data.
It's not a Web Stream API ReadableStream
, because ReadableStream
doesn't allow hinting the desired read size (except using BYOB readable, but causes extra allocations for small reads).