strings-escape

1.0.4 • Public • Published

strings-escape

Install

$ npm install --save strings-escape

Usage

const stringEscape = require('strings-escape');
 
const convertedString = stringEscape('Remove special $ characters in RegExp');
 
//=> 'Remove special \$ characters in RegExp'
 
new RegExp(convertedString);
 

License

MIT © [Jijo Paulose]

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i strings-escape

      Weekly Downloads

      11

      Version

      1.0.4

      License

      MIT

      Unpacked Size

      2.21 kB

      Total Files

      4

      Last publish

      Collaborators

      • jijopaulose