Latest Threat ResearchGlassWorm Loader Hits Open VSX via Developer Account Compromise.Details
Socket
Book a DemoInstallSign in
Socket

regexp-special-chars

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

regexp-special-chars

Special RegExp characters, useful for escaping.

latest
Source
npmnpm
Version
0.1.0
Version published
Weekly downloads
316
52.66%
Maintainers
1
Weekly downloads
 
Created
Source

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

License

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

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

Keywords

char

FAQs

Package last updated on 30 Jun 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts