Skip to content

Add .readableStream(), .writableStream() and .transformStream() methods#1254

Merged
sindresorhus merged 1 commit into
mainfrom
add-web-stream-methods
Jul 6, 2026
Merged

Add .readableStream(), .writableStream() and .transformStream() methods#1254
sindresorhus merged 1 commit into
mainfrom
add-web-stream-methods

Conversation

@sindresorhus

Copy link
Copy Markdown
Owner

Fixes #913

… methods

The web stream versions of `.readable()`, `.writable()` and `.duplex()`. They wrap those methods with `Readable.toWeb()`, `Writable.toWeb()` and `Duplex.toWeb()`, so all error and abort handling is reused as is. The early error path and `.pipe()` return value forward them too.

Fixes #913
@sindresorhus sindresorhus force-pushed the add-web-stream-methods branch from 3bb49a2 to 91fe48f Compare July 6, 2026 20:17
@sindresorhus sindresorhus merged commit 29d9cfc into main Jul 6, 2026
20 checks passed
@sindresorhus sindresorhus deleted the add-web-stream-methods branch July 6, 2026 20:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add .readableStream(), .writableStream() and .transformStream() methods

1 participant