rexp

make regexp from minimatch string or regexp string

Rexp 0.0.1

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

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

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

see minimatch options

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