execa icon indicating copy to clipboard operation
execa copied to clipboard

Support `URL` where paths are supported?

Open sindresorhus opened this issue 4 years ago • 1 comments

Node.js is adopting it for a lot of APIs.

  • file argument.
  • cwd option.
  • localDir option.
  • execPath option.
  • nodePath option.

@ehmicky Thoughts?


If we decide to do this, we should probably open a Node.js issue about supporting URL for things in childProcess too.

sindresorhus avatar May 03 '21 15:05 sindresorhus

Yes, this makes sense :+1:

ehmicky avatar May 03 '21 15:05 ehmicky

Status update.

Done for:

  • cwd option
  • localDir option
  • stdin/stdout/stderr options

Not done for:

  • execPath option
  • nodePath option
  • inputFile option
  • file argument

ehmicky avatar Dec 18 '23 03:12 ehmicky

execPath done at https://github.com/sindresorhus/npm-run-path/pull/16 and #633 nodePath done at #632. inputFile done at #630. file argument done at https://github.com/sindresorhus/execa/pull/631

ehmicky avatar Dec 21 '23 02:12 ehmicky

Only one missing: the shell option, done at #635.

ehmicky avatar Dec 21 '23 17:12 ehmicky