René's URL Explorer Experiment


Title: child_process: add `subprocess.readLines` method by aduh95 · Pull Request #45774 · nodejs/node · GitHub

Open Graph Title: child_process: add `subprocess.readLines` method by aduh95 · Pull Request #45774 · nodejs/node

X Title: child_process: add `subprocess.readLines` method by aduh95 · Pull Request #45774 · nodejs/node

Description: Node.js JavaScript runtime ✨🐢🚀✨. Contribute to nodejs/node development by creating an account on GitHub.

Open Graph Description: Similarly to fileHandle.readLines(), iterating line by line over the output of a command is a somewhat regular thing when writing scripts. This PR adds a util method to cover this use case.

X Description: Similarly to fileHandle.readLines(), iterating line by line over the output of a command is a somewhat regular thing when writing scripts. This PR adds a util method to cover this use case.

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

X: @github

direct link

Domain: github.com

route-pattern/_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:87b0d77f-c444-004a-e42e-c18a905d410d
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idBC4E:1023E0:849E7F:BB034C:6A4E7C7D
html-safe-nonce4c0a0f80b703d6110871bddacc03ff8a8f55ce7fa10b7f431aca02b22f1de0f2
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQzRFOjEwMjNFMDo4NDlFN0Y6QkIwMzRDOjZBNEU3QzdEIiwidmlzaXRvcl9pZCI6Ijg3NzEwODczNzY1MDE4NjU1OTciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac0e3ac72418226eefe5cb1a72bbe59423d09a9ebf708c71a75362c0a7f3aecfd6
hovercard-subject-tagpull_request:1152089384
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///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/nodejs/node/45774/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/cac242e464a02cec314e7b0ae34cf08fbacac128ebd78da731e6365b2eaf7398/nodejs/node/pull/45774
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/cac242e464a02cec314e7b0ae34cf08fbacac128ebd78da731e6365b2eaf7398/nodejs/node/pull/45774
og:image:altSimilarly to fileHandle.readLines(), iterating line by line over the output of a command is a somewhat regular thing when writing scripts. This PR adds a util method to cover this use case.
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameaduh95
hostnamegithub.com
expected-hostnamegithub.com
None41b6ab3ba6d20a71766ac245b5a4a94c6fc672a9cd4da7d44c1b33ab8bf6a21c
turbo-cache-controlno-cache
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
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasee6a744804e8e70f97b4d5a18a94dcc63db22f97a
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/nodejs/node/pull/45774#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fnodejs%2Fnode%2Fpull%2F45774
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/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/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/enterprise/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%2F45774
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%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=nodejs%2Fnode
Reloadhttps://github.com/nodejs/node/pull/45774
Reloadhttps://github.com/nodejs/node/pull/45774
Reloadhttps://github.com/nodejs/node/pull/45774
Please reload this pagehttps://github.com/nodejs/node/pull/45774
nodejs https://github.com/nodejs
nodehttps://github.com/nodejs/node
Please reload this pagehttps://github.com/nodejs/node/pull/45774
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.3k https://github.com/nodejs/node/issues
Pull requests 964 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
aduh95https://github.com/aduh95
nodejs:mainhttps://github.com/nodejs/node/tree/main
aduh95:cp-readLineshttps://github.com/aduh95/node/tree/cp-readLines
Conversationhttps://github.com/nodejs/node/pull/45774
Commits5 (5)https://github.com/nodejs/node/pull/45774/commits
Checkshttps://github.com/nodejs/node/pull/45774/checks
Files changedhttps://github.com/nodejs/node/pull/45774/files
child_process: add subprocess.readLines methodhttps://github.com/nodejs/node/pull/45774#top
aduh95https://github.com/aduh95
nodejs:mainhttps://github.com/nodejs/node/tree/main
aduh95:cp-readLineshttps://github.com/aduh95/node/tree/cp-readLines
https://github.com/aduh95
aduh95https://github.com/aduh95
Dec 7, 2022https://github.com/nodejs/node/pull/45774#issue-1482485829
Please reload this pagehttps://github.com/nodejs/node/pull/45774
https://github.com/nodejs-github-bot
nodejs-github-bothttps://github.com/nodejs-github-bot
child_process https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3Achild_process
needs-ci https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3Aneeds-ci
readline https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3Areadline
Dec 7, 2022https://github.com/nodejs/node/pull/45774#event-7980418845
https://github.com/addaleax
addaleaxhttps://github.com/addaleax
Dec 7, 2022https://github.com/nodejs/node/pull/45774#issuecomment-1341673389
#42590https://github.com/nodejs/node/pull/42590
Please reload this pagehttps://github.com/nodejs/node/pull/45774
https://github.com/aduh95
aduh95https://github.com/aduh95
Dec 7, 2022https://github.com/nodejs/node/pull/45774#issuecomment-1341758342
Please reload this pagehttps://github.com/nodejs/node/pull/45774
https://github.com/addaleax
addaleaxhttps://github.com/addaleax
Dec 8, 2022https://github.com/nodejs/node/pull/45774#issuecomment-1342556140
#42590https://github.com/nodejs/node/pull/42590
Please reload this pagehttps://github.com/nodejs/node/pull/45774
https://github.com/addaleax
addaleaxhttps://github.com/addaleax
Dec 8, 2022 https://github.com/nodejs/node/pull/45774#pullrequestreview-1209909418
View reviewed changes https://github.com/nodejs/node/pull/45774/files
lib/internal/child_process.jshttps://github.com/nodejs/node/pull/45774/files#diff-cccecc2fcae39b45f34342807c0403825080037e43bbf0bd659e6409645335b1
addaleaxhttps://github.com/addaleax
Dec 8, 2022https://github.com/nodejs/node/pull/45774#discussion_r1043239816
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/nodejs/node/pull/45774
https://github.com/aduh95
aduh95https://github.com/aduh95
Dec 8, 2022https://github.com/nodejs/node/pull/45774#issuecomment-1342616279
execa does consider a non-zero exit code as a failure or if it's killed by a signalhttps://github.com/sindresorhus/execa#childprocessresult
#42590https://github.com/nodejs/node/pull/42590
Please reload this pagehttps://github.com/nodejs/node/pull/45774
https://github.com/aduh95
aduh95https://github.com/aduh95
Dec 29, 2022 https://github.com/nodejs/node/pull/45774#ref-issue-903764510
Add Promise-based versions of child_process #38823 https://github.com/nodejs/node/issues/38823
aduh95https://github.com/aduh95
September 27, 2023 14:40https://github.com/nodejs/node/pull/45774#commits-pushed-1bfe314
https://github.com/aduh95
child_process: add subprocess.readLines methodhttps://github.com/nodejs/node/pull/45774/commits/1bfe3142a14e8ba80d51754b38b3ec0f1efa1bc9
1bfe314https://github.com/nodejs/node/pull/45774/commits/1bfe3142a14e8ba80d51754b38b3ec0f1efa1bc9
https://github.com/aduh95
fixup! child_process: add subprocess.readLines methodhttps://github.com/nodejs/node/pull/45774/commits/27dc6aa98d5d273a010e642b4b945e42a89f151b
27dc6aahttps://github.com/nodejs/node/pull/45774/commits/27dc6aa98d5d273a010e642b4b945e42a89f151b
https://github.com/aduh95
fixup! child_process: add subprocess.readLines methodhttps://github.com/nodejs/node/pull/45774/commits/0a8e28140f4cbc5ac37d1b25c2437860d7b57d6e
0a8e281https://github.com/nodejs/node/pull/45774/commits/0a8e28140f4cbc5ac37d1b25c2437860d7b57d6e
https://github.com/aduh95
use close instead od exithttps://github.com/nodejs/node/pull/45774/commits/ec1fc0a8a8611a8d88bac281912cf4cbc2a4538c
ec1fc0ahttps://github.com/nodejs/node/pull/45774/commits/ec1fc0a8a8611a8d88bac281912cf4cbc2a4538c
https://github.com/aduh95
rename options, change defaultshttps://github.com/nodejs/node/pull/45774/commits/038bd4c99fccfad046ab4f76539327bc36961aee
038bd4chttps://github.com/nodejs/node/pull/45774/commits/038bd4c99fccfad046ab4f76539327bc36961aee
https://github.com/aduh95
aduh95https://github.com/aduh95
force-pushedhttps://github.com/nodejs/node/compare/48097dc4e3383587c2e4912849f4e07d0fc19097..038bd4c99fccfad046ab4f76539327bc36961aee
48097dchttps://github.com/nodejs/node/commit/48097dc4e3383587c2e4912849f4e07d0fc19097
038bd4chttps://github.com/nodejs/node/commit/038bd4c99fccfad046ab4f76539327bc36961aee
Compare https://github.com/nodejs/node/compare/48097dc4e3383587c2e4912849f4e07d0fc19097..038bd4c99fccfad046ab4f76539327bc36961aee
September 29, 2023 11:13https://github.com/nodejs/node/pull/45774#event-10510168216
https://github.com/targos
targoshttps://github.com/targos
Oct 2, 2023https://github.com/nodejs/node/pull/45774#issuecomment-1742686244
Please reload this pagehttps://github.com/nodejs/node/pull/45774
https://github.com/aduh95
aduh95https://github.com/aduh95
Sep 9, 2024 https://github.com/nodejs/node/pull/45774#ref-issue-2509634156
Add a cleaned up child_processes API that cleans the API up for child process spawning, like how fs/promises cleaned up fs #54799 https://github.com/nodejs/node/issues/54799
https://github.com/aduh95
aduh95https://github.com/aduh95
Jul 3, 2025 https://github.com/nodejs/node/pull/45774#ref-pullrequest-3196536664
doc: move "Core Promise APIs" to "Completed initiatives" #58934 https://github.com/nodejs/node/pull/58934
https://github.co/hiddenchars
https://github.com/nodejs/node/pull/{{ revealButtonHref }}
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fnodejs%2Fnode%2Fpull%2F45774
https://github.com/addaleax
addaleax https://github.com/addaleax
https://github.com/nodejs/node/pull/45774/files/48097dc4e3383587c2e4912849f4e07d0fc19097
child_process https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3Achild_process
needs-ci https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3Aneeds-ci
readline https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3Areadline
Please reload this pagehttps://github.com/nodejs/node/pull/45774
https://github.com/aduh95
https://github.com/addaleax
https://github.com/targos
https://github.com/nodejs-github-bot
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.