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