escape-regexp

Escape regular expression special characters

escape-regexp

Escape regular expression special characters.

var escape = require('escape-regexp');
escape(str);

MIT