René's URL Explorer Experiment


Title: lib: add support for readable byte streams to .toWeb() by seriousme · Pull Request #58664 · nodejs/node · GitHub

Open Graph Title: lib: add support for readable byte streams to .toWeb() by seriousme · Pull Request #58664 · nodejs/node

X Title: lib: add support for readable byte streams to .toWeb() by seriousme · Pull Request #58664 · nodejs/node

Description: Add support for the creation of ReadableByteStream to Readable.toWeb() and Duplex.toWeb() This enables the use of .getReader({ mode: "byob" }) on e.g. socket().toWeb() e.g.: const { writable, readable } = Duplex.toWeb(duplex, { type: 'bytes' }); const data = new Uint8Array(dataToRead.length); readable.getReader({ mode: 'byob' }).read(data).then((result) => { // do something with result }); Kind regards, Hans Refs: #56004 (comment) Refs: https://developer.mozilla.org/en-US/docs/Web/API/Streams_API/Using_readable_byte_streams

Open Graph Description: Add support for the creation of ReadableByteStream to Readable.toWeb() and Duplex.toWeb() This enables the use of .getReader({ mode: "byob" }) on e.g. socket().toWeb() e.g.: const { writ...

X Description: Add support for the creation of ReadableByteStream to Readable.toWeb() and Duplex.toWeb() This enables the use of .getReader({ mode: "byob" }) on e.g. socket().toWeb() e.g.: cons...

Opengraph URL: https://github.com/nodejs/node/pull/58664

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:1e9db694-3d31-f597-e321-491c8ed5b19d
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idCB00:356725:2CDA5A:3D8509:6A4C25DF
html-safe-nonceddc82ff374e5829214838e4273e8be489b55bfd48ba6716108e043faf493a57e
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQjAwOjM1NjcyNToyQ0RBNUE6M0Q4NTA5OjZBNEMyNURGIiwidmlzaXRvcl9pZCI6IjY5ODk5MTA1MTU1MzYxMTEwNzEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac7c33f3e41cf8c140809eb2f4a2d692563c16808d50eac196ce51c5b344661187
hovercard-subject-tagpull_request:2582158929
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/nodejs/node/pull/58664/files
twitter:imagehttps://avatars.githubusercontent.com/u/3322396?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/3322396?s=400&v=4
og:image:altAdd support for the creation of ReadableByteStream to Readable.toWeb() and Duplex.toWeb() This enables the use of .getReader({ mode: "byob" }) on e.g. socket().toWeb() e.g.: const { writ...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None1b6b16d04026f131a36d57e3b01d0f4d26a51800edf48bf5ed0256e0ac905511
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/nodejs/node git https://github.com/nodejs/node.git
octolytics-dimension-user_id9950313
octolytics-dimension-user_loginnodejs
octolytics-dimension-repository_id27193779
octolytics-dimension-repository_nwonodejs/node
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id27193779
octolytics-dimension-repository_network_root_nwonodejs/node
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release9ee13484b32cf23e15fde191da4c9aa47d41201c
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/nodejs/node/pull/58664/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fnodejs%2Fnode%2Fpull%2F58664%2Ffiles
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fnodejs%2Fnode%2Fpull%2F58664%2Ffiles
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=nodejs%2Fnode
Reloadhttps://github.com/nodejs/node/pull/58664/files
Reloadhttps://github.com/nodejs/node/pull/58664/files
Reloadhttps://github.com/nodejs/node/pull/58664/files
Please reload this pagehttps://github.com/nodejs/node/pull/58664/files
nodejs https://github.com/nodejs
nodehttps://github.com/nodejs/node
Please reload this pagehttps://github.com/nodejs/node/pull/58664/files
Notifications https://github.com/login?return_to=%2Fnodejs%2Fnode
Fork 36k https://github.com/login?return_to=%2Fnodejs%2Fnode
Star 118k https://github.com/login?return_to=%2Fnodejs%2Fnode
Code https://github.com/nodejs/node
Issues 1.4k https://github.com/nodejs/node/issues
Pull requests 967 https://github.com/nodejs/node/pulls
Actions https://github.com/nodejs/node/actions
Projects https://github.com/nodejs/node/projects
Security and quality 0 https://github.com/nodejs/node/security
Insights https://github.com/nodejs/node/pulse
Code https://github.com/nodejs/node
Issues https://github.com/nodejs/node/issues
Pull requests https://github.com/nodejs/node/pulls
Actions https://github.com/nodejs/node/actions
Projects https://github.com/nodejs/node/projects
Security and quality https://github.com/nodejs/node/security
Insights https://github.com/nodejs/node/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fnodejs%2Fnode%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fnodejs%2Fnode%2Fissues%2Fnew%2Fchoose
nodejs-github-bothttps://github.com/nodejs-github-bot
nodejs:mainhttps://github.com/nodejs/node/tree/main
seriousme:lib-add-toweb-readable-duplexhttps://github.com/seriousme/node/tree/lib-add-toweb-readable-duplex
Conversation 83 https://github.com/nodejs/node/pull/58664
Commits 14 https://github.com/nodejs/node/pull/58664/commits
Checks 36 https://github.com/nodejs/node/pull/58664/checks
Files changed https://github.com/nodejs/node/pull/58664/files
Please reload this pagehttps://github.com/nodejs/node/pull/58664/files
lib: add support for readable byte streams to .toWeb() https://github.com/nodejs/node/pull/58664/files#top
Show all changes 14 commits https://github.com/nodejs/node/pull/58664/files
c5c4351 lib: add support for readable byte streams to .toWeb() seriousme Jun 10, 2025 https://github.com/nodejs/node/pull/58664/commits/c5c4351fa60f763306d40890b3f3a15b5b69f66b
ca0aa34 fix: correct link from webstream to streamduplextowebstreamduplex seriousme Jun 14, 2025 https://github.com/nodejs/node/pull/58664/commits/ca0aa34dc11f0e884a7bfe519d811ef0adefedb0
b9e395a rewrite of test-stream-readable-to-web-byob.js seriousme Jun 16, 2025 https://github.com/nodejs/node/pull/58664/commits/b9e395a419b014a8ca5abac32deb302b17c1277f
814af3b add validation of 'type' option seriousme Jun 16, 2025 https://github.com/nodejs/node/pull/58664/commits/814af3b9ba0dc6f8cb72acd21bdd645a5c22be63
e9cca53 use internal validators to validate options seriousme Jun 16, 2025 https://github.com/nodejs/node/pull/58664/commits/e9cca53e583c9d895a1a2ecf50c97c5ef30bd4d2
36050d8 Update lib/internal/webstreams/adapters.js seriousme Jun 17, 2025 https://github.com/nodejs/node/pull/58664/commits/36050d8088f58670bca043e4a0713858e21ede22
385f3fc add item to doc changes seriousme Jun 21, 2025 https://github.com/nodejs/node/pull/58664/commits/385f3fc4343e26ac9493ded054f1d8329e595e07
1e82627 applied various changes seriousme Jun 21, 2025 https://github.com/nodejs/node/pull/58664/commits/1e826271003bb956005e602c1210b060ef6c9d74
8f475bd fixed test-stream-readable-to-web-byob.js seriousme Jun 27, 2025 https://github.com/nodejs/node/pull/58664/commits/8f475bd53118826100164aa188a5e0965da99c49
7efa8d2 applied review changes to adapters.js seriousme Jun 27, 2025 https://github.com/nodejs/node/pull/58664/commits/7efa8d2c5ece405ed75cb38b674ff4bff22d8c55
ffcf924 remove colon from description as it breaks the YAML seriousme Jul 6, 2025 https://github.com/nodejs/node/pull/58664/commits/ffcf9244846fd578fc5a8c21189e48e7379e2378
8612c1e add single quotes to 'type' seriousme Jul 6, 2025 https://github.com/nodejs/node/pull/58664/commits/8612c1e7453eb2c17d2f7a6d8b8ebb7a31492ae2
f9e4a86 update stream.md seriousme Jul 9, 2025 https://github.com/nodejs/node/pull/58664/commits/f9e4a869bc0be4190b20ded925570222c9babbab
55af65e Apply suggestions from code review by jasnell seriousme Sep 2, 2025 https://github.com/nodejs/node/pull/58664/commits/55af65e85c80c8df085c3d46a96e6d48d62ebc27
Clear filters https://github.com/nodejs/node/pull/58664/files
Please reload this pagehttps://github.com/nodejs/node/pull/58664/files
Please reload this pagehttps://github.com/nodejs/node/pull/58664/files
stream.md https://github.com/nodejs/node/pull/58664/files#diff-00d8d040a3fe90e3052af39cb55dc9bcac70539d5d17791449cbfe7e3b55fb90
webstreams.md https://github.com/nodejs/node/pull/58664/files#diff-4e23b2e4df5943ed79ce9791a276a3299d48230bd5e18b087344d39894311c4f
duplex.js https://github.com/nodejs/node/pull/58664/files#diff-1d551b1d08361e82290d9a8efbf7dc37e17aa4b417068ed243932d035b96d318
adapters.js https://github.com/nodejs/node/pull/58664/files#diff-43e358c7bb606a04e17d203d22de7c9d318786c44b34a98523514cce0691c265
test-stream-duplex.js https://github.com/nodejs/node/pull/58664/files#diff-518ae41679c80f7d4ecbe05b7f7dabe91570bdf4212f29c07f5ba6dca1dd5ced
test-stream-readable-to-web-byob.js https://github.com/nodejs/node/pull/58664/files#diff-408f125c0e0cf696baf6608ba14f3ec20130a0bb7d328a4f53174584ac98c097
test-stream-readable-to-web-termination-byob.js https://github.com/nodejs/node/pull/58664/files#diff-d5f7a24be219787d7adc86ab9037853dfee72af9a4a6f6dc0031afbe978ba171
doc/api/stream.mdhttps://github.com/nodejs/node/pull/58664/files#diff-00d8d040a3fe90e3052af39cb55dc9bcac70539d5d17791449cbfe7e3b55fb90
View file https://github.com/seriousme/node/blob/55af65e85c80c8df085c3d46a96e6d48d62ebc27/doc/api/stream.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/nodejs/node/pull/58664/{{ revealButtonHref }}
https://github.com/nodejs/node/pull/58664/files#diff-00d8d040a3fe90e3052af39cb55dc9bcac70539d5d17791449cbfe7e3b55fb90
https://github.com/nodejs/node/pull/58664/files#diff-00d8d040a3fe90e3052af39cb55dc9bcac70539d5d17791449cbfe7e3b55fb90
https://github.com/nodejs/node/pull/58664/files#diff-00d8d040a3fe90e3052af39cb55dc9bcac70539d5d17791449cbfe7e3b55fb90
https://github.com/nodejs/node/pull/58664/files#diff-00d8d040a3fe90e3052af39cb55dc9bcac70539d5d17791449cbfe7e3b55fb90
https://github.com/nodejs/node/pull/58664/files#diff-00d8d040a3fe90e3052af39cb55dc9bcac70539d5d17791449cbfe7e3b55fb90
https://github.com/nodejs/node/pull/58664/files#diff-00d8d040a3fe90e3052af39cb55dc9bcac70539d5d17791449cbfe7e3b55fb90
doc/api/webstreams.mdhttps://github.com/nodejs/node/pull/58664/files#diff-4e23b2e4df5943ed79ce9791a276a3299d48230bd5e18b087344d39894311c4f
View file https://github.com/seriousme/node/blob/55af65e85c80c8df085c3d46a96e6d48d62ebc27/doc/api/webstreams.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/nodejs/node/pull/58664/{{ revealButtonHref }}
https://github.com/nodejs/node/pull/58664/files#diff-4e23b2e4df5943ed79ce9791a276a3299d48230bd5e18b087344d39894311c4f
https://github.com/nodejs/node/pull/58664/files#diff-4e23b2e4df5943ed79ce9791a276a3299d48230bd5e18b087344d39894311c4f
lib/internal/streams/duplex.jshttps://github.com/nodejs/node/pull/58664/files#diff-1d551b1d08361e82290d9a8efbf7dc37e17aa4b417068ed243932d035b96d318
View file https://github.com/seriousme/node/blob/55af65e85c80c8df085c3d46a96e6d48d62ebc27/lib/internal/streams/duplex.js
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/nodejs/node/pull/58664/{{ revealButtonHref }}
https://github.com/nodejs/node/pull/58664/files#diff-1d551b1d08361e82290d9a8efbf7dc37e17aa4b417068ed243932d035b96d318
https://github.com/nodejs/node/pull/58664/files#diff-1d551b1d08361e82290d9a8efbf7dc37e17aa4b417068ed243932d035b96d318
lib/internal/webstreams/adapters.jshttps://github.com/nodejs/node/pull/58664/files#diff-43e358c7bb606a04e17d203d22de7c9d318786c44b34a98523514cce0691c265
View file https://github.com/seriousme/node/blob/55af65e85c80c8df085c3d46a96e6d48d62ebc27/lib/internal/webstreams/adapters.js
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/nodejs/node/pull/58664/{{ revealButtonHref }}
https://github.com/nodejs/node/pull/58664/files#diff-43e358c7bb606a04e17d203d22de7c9d318786c44b34a98523514cce0691c265
https://github.com/nodejs/node/pull/58664/files#diff-43e358c7bb606a04e17d203d22de7c9d318786c44b34a98523514cce0691c265
https://github.com/nodejs/node/pull/58664/files#diff-43e358c7bb606a04e17d203d22de7c9d318786c44b34a98523514cce0691c265
https://github.com/nodejs/node/pull/58664/files#diff-43e358c7bb606a04e17d203d22de7c9d318786c44b34a98523514cce0691c265
https://github.com/nodejs/node/pull/58664/files#diff-43e358c7bb606a04e17d203d22de7c9d318786c44b34a98523514cce0691c265
https://github.com/nodejs/node/pull/58664/files#diff-43e358c7bb606a04e17d203d22de7c9d318786c44b34a98523514cce0691c265
https://github.com/nodejs/node/pull/58664/files#diff-43e358c7bb606a04e17d203d22de7c9d318786c44b34a98523514cce0691c265
https://github.com/nodejs/node/pull/58664/files#diff-43e358c7bb606a04e17d203d22de7c9d318786c44b34a98523514cce0691c265
https://github.com/nodejs/node/pull/58664/files#diff-43e358c7bb606a04e17d203d22de7c9d318786c44b34a98523514cce0691c265
Please reload this pagehttps://github.com/nodejs/node/pull/58664/files
https://github.com/nodejs/node/pull/58664/files#diff-43e358c7bb606a04e17d203d22de7c9d318786c44b34a98523514cce0691c265
https://github.com/nodejs/node/pull/58664/files#diff-43e358c7bb606a04e17d203d22de7c9d318786c44b34a98523514cce0691c265
https://github.com/nodejs/node/pull/58664/files#diff-43e358c7bb606a04e17d203d22de7c9d318786c44b34a98523514cce0691c265
test/parallel/test-stream-duplex.jshttps://github.com/nodejs/node/pull/58664/files#diff-518ae41679c80f7d4ecbe05b7f7dabe91570bdf4212f29c07f5ba6dca1dd5ced
View file https://github.com/seriousme/node/blob/55af65e85c80c8df085c3d46a96e6d48d62ebc27/test/parallel/test-stream-duplex.js
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/nodejs/node/pull/58664/{{ revealButtonHref }}
https://github.com/nodejs/node/pull/58664/files#diff-518ae41679c80f7d4ecbe05b7f7dabe91570bdf4212f29c07f5ba6dca1dd5ced
test/parallel/test-stream-readable-to-web-byob.jshttps://github.com/nodejs/node/pull/58664/files#diff-408f125c0e0cf696baf6608ba14f3ec20130a0bb7d328a4f53174584ac98c097
View file https://github.com/seriousme/node/blob/55af65e85c80c8df085c3d46a96e6d48d62ebc27/test/parallel/test-stream-readable-to-web-byob.js
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/nodejs/node/pull/58664/{{ revealButtonHref }}
jasnellhttps://github.com/jasnell
Jun 21, 2025https://github.com/nodejs/node/pull/58664/files#r2160088678
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/nodejs/node/pull/58664/files
jasnellhttps://github.com/jasnell
Jun 21, 2025https://github.com/nodejs/node/pull/58664/files#r2160087811
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/nodejs/node/pull/58664/files
test/parallel/test-stream-readable-to-web-termination-byob.jshttps://github.com/nodejs/node/pull/58664/files#diff-d5f7a24be219787d7adc86ab9037853dfee72af9a4a6f6dc0031afbe978ba171
View file https://github.com/seriousme/node/blob/55af65e85c80c8df085c3d46a96e6d48d62ebc27/test/parallel/test-stream-readable-to-web-termination-byob.js
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/nodejs/node/pull/58664/{{ revealButtonHref }}
Please reload this pagehttps://github.com/nodejs/node/pull/58664/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.