Skip to content

child_process: allow `URL` instances as paths to executables

Allow URL instances to be passed as file parameters and execPath options. For example:

import { execFile } from 'node:child_process';

execFile(
  new URL('../../bin/executable', import.meta.url),
  ['argv1'],
  { cwd: new URL('../dir/subdir', import.meta.url) },
  () => { ... }
);

Merge request reports

Loading