Détail du package

@automattic/escapeshellarg

matticbot130ISC0.3.0

Escape a string to be used as a shell argument.

readme

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'"