chao faf16d266e update | hace 6 meses | |
---|---|---|
.. | ||
src | hace 6 meses | |
.npmignore | hace 6 meses | |
CHANGELOG.json | hace 6 meses | |
CHANGELOG.md | hace 6 meses | |
LICENSE | hace 6 meses | |
README.md | hace 6 meses | |
jest.config.js | hace 6 meses | |
package.json | hace 6 meses | |
tsconfig.build.json | hace 6 meses | |
tsconfig.json | hace 6 meses | |
tsconfig.test.json | hace 6 meses |
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).