-
-
Notifications
You must be signed in to change notification settings - Fork 37.1k
Add Promise-based versions of child_process #38823
Copy link
Copy link
Closed as not planned
Labels
child_processIssues and PRs related to the child_process subsystem.Issues and PRs related to the child_process subsystem.feature requestIssues requesting new Node.js features.Issues requesting new Node.js features.promisesIssues and PRs related to ECMAScript promises.Issues and PRs related to ECMAScript promises.
Description
Activity
Metadata
Metadata
Assignees
Labels
child_processIssues and PRs related to the child_process subsystem.Issues and PRs related to the child_process subsystem.feature requestIssues requesting new Node.js features.Issues requesting new Node.js features.promisesIssues and PRs related to ECMAScript promises.Issues and PRs related to ECMAScript promises.
Is your feature request related to a problem? Please describe.
It would be nice if child_process functionality, such as
exec, had Promised based versions by default. Currently it does not, see https://nodejs.org/api/child_process.htmlDescribe the solution you'd like
A new
child_process/promisesimport path that can be used similar to how fs promises are used:Describe alternatives you've considered
I am already using
const exec = util.promisify(process.exec);but that is not as nice. And this new proposal follows along what is happening in other Node.js APIs.