chao faf16d266e update | пре 6 месеци | |
---|---|---|
.. | ||
src | пре 6 месеци | |
.npmignore | пре 6 месеци | |
CHANGELOG.json | пре 6 месеци | |
CHANGELOG.md | пре 6 месеци | |
LICENSE | пре 6 месеци | |
README.md | пре 6 месеци | |
jest.config.js | пре 6 месеци | |
package.json | пре 6 месеци | |
tsconfig.build.json | пре 6 месеци | |
tsconfig.json | пре 6 месеци | |
tsconfig.test.json | пре 6 месеци |
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).