Let child_process 'cwd' arguments accept a URL #38861
Labels
child_process
Issues and PRs related to the child_process subsystem.
feature request
Issues that request new features to be added to Node.js.
Is your feature request related to a problem? Please describe.
It would be nice if child_process functionality, such as
exec
, could accept aURL
(docs) for thecwd
argument. For example the File SystemwriteFile
accepts a URL as itsfile
argument already. So it would be nice for the child_process module to do so as well for path arguments.This is especially nice with ECMAScript modules since e.g. the old
__dirname
does not exist anymore, but we are forced to useURL
to get a file path to the current file.Describe the solution you'd like
The text was updated successfully, but these errors were encountered: