| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:1e9db694-3d31-f597-e321-491c8ed5b19d |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | CB00:356725:2CDA5A:3D8509:6A4C25DF |
| html-safe-nonce | ddc82ff374e5829214838e4273e8be489b55bfd48ba6716108e043faf493a57e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQjAwOjM1NjcyNToyQ0RBNUE6M0Q4NTA5OjZBNEMyNURGIiwidmlzaXRvcl9pZCI6IjY5ODk5MTA1MTU1MzYxMTEwNzEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 7c33f3e41cf8c140809eb2f4a2d692563c16808d50eac196ce51c5b344661187 |
| hovercard-subject-tag | pull_request:2582158929 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | ///pull_requests/show/files |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/nodejs/node/pull/58664/files |
| twitter:image | https://avatars.githubusercontent.com/u/3322396?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/3322396?s=400&v=4 |
| og:image:alt | 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... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 1b6b16d04026f131a36d57e3b01d0f4d26a51800edf48bf5ed0256e0ac905511 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/nodejs/node git https://github.com/nodejs/node.git |
| octolytics-dimension-user_id | 9950313 |
| octolytics-dimension-user_login | nodejs |
| octolytics-dimension-repository_id | 27193779 |
| octolytics-dimension-repository_nwo | nodejs/node |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 27193779 |
| octolytics-dimension-repository_network_root_nwo | nodejs/node |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 9ee13484b32cf23e15fde191da4c9aa47d41201c |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://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 AI | https://github.com/features/copilot |
| GitHub Copilot appDirect agents from issue to merge | https://github.com/features/ai/github-app |
| MCP RegistryNewIntegrate external tools | https://github.com/mcp |
| ActionsAutomate any workflow | https://github.com/features/actions |
| CodespacesInstant dev environments | https://github.com/features/codespaces |
| IssuesPlan and track work | https://github.com/features/issues |
| Code ReviewManage code changes | https://github.com/features/code-review |
| GitHub Advanced SecurityFind and fix vulnerabilities | https://github.com/security/advanced-security |
| Code securitySecure your code as you build | https://github.com/security/advanced-security/code-security |
| Secret protectionStop leaks before they start | https://github.com/security/advanced-security/secret-protection |
| Why GitHub | https://github.com/why-github |
| Documentation | https://docs.github.com |
| Blog | https://github.blog |
| Changelog | https://github.blog/changelog |
| Marketplace | https://github.com/marketplace |
| View all features | https://github.com/features |
| Enterprises | https://github.com/enterprise |
| Small and medium teams | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| App Modernization | https://github.com/solutions/use-case/app-modernization |
| DevSecOps | https://github.com/solutions/use-case/devsecops |
| DevOps | https://github.com/solutions/use-case/devops |
| CI/CD | https://github.com/solutions/use-case/ci-cd |
| View all use cases | https://github.com/solutions/use-case |
| Healthcare | https://github.com/solutions/industry/healthcare |
| Financial services | https://github.com/solutions/industry/financial-services |
| Manufacturing | https://github.com/solutions/industry/manufacturing |
| Government | https://github.com/solutions/industry/government |
| View all industries | https://github.com/solutions/industry |
| View all solutions | https://github.com/solutions |
| AI | https://github.com/resources/articles?topic=ai |
| Software Development | https://github.com/resources/articles?topic=software-development |
| DevOps | https://github.com/resources/articles?topic=devops |
| Security | https://github.com/resources/articles?topic=security |
| View all topics | https://github.com/resources/articles |
| Customer stories | https://github.com/customer-stories |
| Events & webinars | https://github.com/resources/events |
| Ebooks & reports | https://github.com/resources/whitepapers |
| Business insights | https://github.com/solutions/executive-insights |
| GitHub Skills | https://skills.github.com |
| Documentation | https://docs.github.com |
| Customer support | https://support.github.com |
| Community forum | https://github.com/orgs/community/discussions |
| Trust center | https://github.com/trust-center |
| Partners | https://github.com/partners |
| View all resources | https://github.com/resources |
| GitHub SponsorsFund open source developers | https://github.com/sponsors |
| Security Lab | https://securitylab.github.com |
| Maintainer Community | https://maintainers.github.com |
| Accelerator | https://github.com/accelerator |
| GitHub Stars | https://stars.github.com |
| Archive Program | https://archiveprogram.github.com |
| Topics | https://github.com/topics |
| Trending | https://github.com/trending |
| Collections | https://github.com/collections |
| Enterprise platformAI-powered developer platform | https://github.com/enterprise |
| GitHub Advanced SecurityEnterprise-grade security features | https://github.com/security/advanced-security |
| Copilot for BusinessEnterprise-grade AI features | https://github.com/features/copilot/copilot-business |
| Premium SupportEnterprise-grade 24/7 support | https://github.com/premium-support |
| Pricing | https://github.com/pricing |
| Search syntax tips | https://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax |
| documentation | https://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 |
| Reload | https://github.com/nodejs/node/pull/58664/files |
| Reload | https://github.com/nodejs/node/pull/58664/files |
| Reload | https://github.com/nodejs/node/pull/58664/files |
| Please reload this page | https://github.com/nodejs/node/pull/58664/files |
|
nodejs
| https://github.com/nodejs |
| node | https://github.com/nodejs/node |
| Please reload this page | https://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 service | https://docs.github.com/terms |
| privacy statement | https://docs.github.com/privacy |
| Sign in | https://github.com/login?return_to=%2Fnodejs%2Fnode%2Fissues%2Fnew%2Fchoose |
| nodejs-github-bot | https://github.com/nodejs-github-bot |
| nodejs:main | https://github.com/nodejs/node/tree/main |
| seriousme:lib-add-toweb-readable-duplex | https://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 page | https://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 page | https://github.com/nodejs/node/pull/58664/files |
| Please reload this page | https://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.md | https://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.md | https://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.js | https://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.js | https://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 page | https://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.js | https://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.js | https://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 }} |
| jasnell | https://github.com/jasnell |
| Jun 21, 2025 | https://github.com/nodejs/node/pull/58664/files#r2160088678 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/nodejs/node/pull/58664/files |
| jasnell | https://github.com/jasnell |
| Jun 21, 2025 | https://github.com/nodejs/node/pull/58664/files#r2160087811 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/nodejs/node/pull/58664/files |
| test/parallel/test-stream-readable-to-web-termination-byob.js | https://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 page | https://github.com/nodejs/node/pull/58664/files |
|
| https://github.com |
| Terms | https://docs.github.com/site-policy/github-terms/github-terms-of-service |
| Privacy | https://docs.github.com/site-policy/privacy-policies/github-privacy-statement |
| Security | https://github.com/security |
| Status | https://www.githubstatus.com/ |
| Community | https://github.community/ |
| Docs | https://docs.github.com/ |
| Contact | https://support.github.com?tags=dotcom-footer |