Package Exports
- escape-string-regexp
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (escape-string-regexp) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
escape-string-regexp 
Escape RegExp special characters
Install
$ npm install --save escape-string-regexpUsage
var escapeStringRegexp = require('escape-string-regexp');
var escapedString = escapeStringRegexp('how much $ for a unicorn?');
//=> how much \$ for a unicorn\?
new RegExp(escapedString);License
MIT © Sindre Sorhus