chao 3ee85dccfa first 5 ماه پیش
..
src 3ee85dccfa first 5 ماه پیش
.npmignore 3ee85dccfa first 5 ماه پیش
CHANGELOG.json 3ee85dccfa first 5 ماه پیش
CHANGELOG.md 3ee85dccfa first 5 ماه پیش
LICENSE 3ee85dccfa first 5 ماه پیش
README.md 3ee85dccfa first 5 ماه پیش
jest.config.js 3ee85dccfa first 5 ماه پیش
package.json 3ee85dccfa first 5 ماه پیش
tsconfig.build.json 3ee85dccfa first 5 ماه پیش
tsconfig.json 3ee85dccfa first 5 ماه پیش
tsconfig.test.json 3ee85dccfa first 5 ماه پیش

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