sindresorhus/execa

Attach `.nodeChildProcess` to the execa promise

已关闭

#413 创建于 2020年2月16日

 (13 条评论) (1 个反应) (0 位负责人)JavaScript (219 个派生)batch import
enhancementhelp wanted

仓库指标

星标
 (6,091 个星标)
PR 合并指标
 (平均合并 6天 18小时) (30 天内合并 6 个 PR)

描述

Node.js does this now for childProcess. when you promisify it.

https://nodejs.org/api/child_process.html#child_process_child_process_exec_command_options_callback

The name is to be decided.

One day, I hope we can get rid of execa() being both a childProcess and promise and just have the .child property on the promise. But that's a huge breaking change. For now, the best we can do is to add it, and recommend new users to use it instead of the old way. We could even un-document the old way.

@ehmicky Thoughts?

贡献者指南