npm stats
  • Search
  • About
  • Repo
  • Sponsor
  • more
    • Search
    • About
    • Repo
    • Sponsor

Made by Antonio Ramirez

regexp-special-chars

0.1.0

@jonschlinkert

npmHomeRepoSnykSocket
Downloads:317
$ npm install regexp-special-chars
DailyWeeklyMonthlyYearly

regexp-special-chars NPM version

Special RegExp characters, useful for escaping.

Install

Install with npm:

npm i regexp-special-chars --save-dev

Usage

var reChars = require('regexp-special-chars');
var esc = function(str) {
  return str.replace(reChars, '\\$&');
};

Author

Jon Schlinkert

  • github/jonschlinkert
  • twitter/jonschlinkert

License

Copyright (c) 2014 Jon Schlinkert, contributors.
Released under the MIT license


This file was generated by verb-cli on June 30, 2014.