sindresorhus/execa

Attach `.nodeChildProcess` to the execa promise

Chiusa

#413 aperta il 16 feb 2020

 (13 commenti) (1 reazione) (0 assegnatari)JavaScript (219 fork)batch import
enhancementhelp wanted

Metriche repository

Star
 (6091 stelle)
Metriche merge PR
 (Merge medio 6g 18h) (6 PR mergiate in 30 g)

Descrizione

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?

Guida contributor