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

    Install

    npm i multi-escape

    DownloadsWeekly Downloads

    4

    Version

    0.0.2

    License

    MIT

    Last publish

    Collaborators

    • avatar