chao faf16d266e update 6 maanden geleden
..
src faf16d266e update 6 maanden geleden
.npmignore faf16d266e update 6 maanden geleden
CHANGELOG.json faf16d266e update 6 maanden geleden
CHANGELOG.md faf16d266e update 6 maanden geleden
LICENSE faf16d266e update 6 maanden geleden
README.md faf16d266e update 6 maanden geleden
jest.config.js faf16d266e update 6 maanden geleden
package.json faf16d266e update 6 maanden geleden
tsconfig.build.json faf16d266e update 6 maanden geleden
tsconfig.json faf16d266e update 6 maanden geleden
tsconfig.test.json faf16d266e update 6 maanden geleden

README.md

@yume-chan/stream-extra

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).