Socket
Book a DemoInstallSign in
Socket

regexpify

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

regexpify

Turn a string to a regexp

latest
Source
npmnpm
Version
0.0.0
Version published
Maintainers
1
Created
Source

NPM version Build Status Dependency Status Coverage Status

Turn a string to a regexp

Install

$ npm install --save regexpify

Usage

var regexpify = require('regexpify');

regexpify('');
//=> /.^/

regexpify('Rainbow');
//=> /Rainbow/

regexpify('how much $ for a unicorn?', true);
//=> /how much \$ for a unicorn\?/

License

MIT © Steve Mao

Keywords

regexpify

FAQs

Package last updated on 15 Jun 2015

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