node-escapeshellarg Escape a string to be used as a shell argument. How to use? npm i --save "escapeshellarg@npm:@automattic/escapeshellarg@latest" var escapeshellarg = require('escapeshellarg') escapeshellarg("Hello's world") // => "'Hello'\\''s world'"