delan / node-escapeshellarg

Escape a string to be used as a shell argument

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

node-escapeshellarg

Escape a string to be used as a shell argument.

How to use?

npm install escapeshellarg
var escapeshellarg = require('escapeshellarg')
escapeshellarg("Hello's world") // => "'Hello\\'s world'"

About

Escape a string to be used as a shell argument


Languages

Language:JavaScript 100.0%