Natural Pleistocene Monsters
    Wondering what’s next for npm?Check out our public roadmap! »

    escapebrackets

    0.0.2 • Public • Published

    Escape Square Brackets

    Escapes square brackets in a string, useful for queries and other such things.

    Install

    $ npm install escapebrackets

    Usage

    escapebrackets(string)
    

    In JS

    var escapebrackets = require('escapebrackets');
    input = "[1 mark]";
    input = escapebrackets(input);
     

    Output

    \[1 mark\]
    

    Install

    npm i escapebrackets

    DownloadsWeekly Downloads

    1

    Version

    0.0.2

    License

    WTFPL

    Last publish

    Collaborators

    • avatar