quotemeta
escape regular expression metacharacters
This module is like
perl's quotemeta
without the part about \Q...\E
.
example
var quotemeta = ;var query = '\\d ' + ;var { return query };var xs ='0 node^js y''1 node_js x''2 node.js 5''3 beep z''X node.js Y''4 boop w';consoledirxs;
methods
var quotemeta =
var escaped = quotemeta(string)
Return string
with metacharacters escaped with \
s.
install
With npm do:
npm install quotemeta
license
MIT