multi-escape

0.0.2 • Public • Published

multi-escape

Escape one or more special characters.

Examples

var escape = require('multi-escape');
 
var str = '"Hello" World! (magic!)'
 
//\"Hello\" World! (magic!)
escape('"', str);
 
//\"Hello\" World\! \(magic\!)
escape(['"','!','('], str)
 
//etc

License

MIT

/multi-escape/

    Package Sidebar

    Install

    npm i multi-escape

    Weekly Downloads

    2

    Version

    0.0.2

    License

    MIT

    Last publish

    Collaborators

    • dreistein