child_process: add an API to escape shell argument
child_process.escapeArgument() escapes shell arguments so that those can be passed to spawned scripts, which expect arguments as escaped strings
Fixes: https://github.com/nodejs/node/issues/34840
Co-Authored-By: Ben Noordhuis info@bnoordhuis.n
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included -
documentation is changed or added -
commit message follows commit guidelines