-
-
Notifications
You must be signed in to change notification settings - Fork 35.3k
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 that request new features to be added to Node.js.Issues that request new features to be added to Node.js.promisesIssues and PRs related to ECMAScript promises.Issues and PRs related to ECMAScript promises.
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 that request new features to be added to Node.js.Issues that request new features to be added to Node.js.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.