rexp

0.0.1 • Public • Published

Rexp 0.0.1

** make regexp from minimatch string or regexp string **

Installation

$ npm install -g rexp

CLI usage

$ rexp './**/*'
/^\.\/(?:(?!(?:\/|^)\.).)*?\/(?!\.)(?=.)[^/]*?$/

$ rexp 'r/myRegexp$/i'
/myRegexp/i

Programmatically usage

  require('rexp').create('./**/*', {}) === /^\.\/(?:(?!(?:\/|^)\.).)*?\/(?!\.)(?=.)[^/]*?$/

Options

see minimatch options

var rexp = require('rexp')
var options = _.extend({}, rexp.defaults, {dot: true})
rexp.create('./**/*', options)

Readme

Keywords

none

Package Sidebar

Install

npm i rexp

Weekly Downloads

0

Version

0.0.1

License

BSD

Last publish

Collaborators

  • kerbyfc