Skip to content

child_process: add an API to escape shell argument

Rodrigo Muino Tomonari requested to merge github/fork/PoojaDurgad/escapearg into main

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), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • documentation is changed or added
  • commit message follows commit guidelines

Merge request reports

Loading