@automattic/escapeshellarg

Escape a string to be used as a shell argument.

Usage no npm install needed!

<script type="module">
  import automatticEscapeshellarg from 'https://cdn.skypack.dev/@automattic/escapeshellarg';
</script>

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