node-modules-regexp ![Build Status](https://camo.githubusercontent.com/ec5f6681fd7c99246a4397409f62998aa2ca8ac149244b495671e240e137b979/68747470733a2f2f7472617669732d63692e6f72672f6a616d657374616c6d6167652f6e6f64652d6d6f64756c65732d7265676578702e7376673f6272616e63683d6d6173746572)
A regular expression for file paths that contain a
node_modules
folder.
Install
$ npm install --save node-modules-regexp
Usage
let nodeModules = require('node-modules-regexp');
// alternate string export
let nodeModulesString = require('node-modules-regexp/string');
nodeModules = new RegExp(nodeModulesString);
nodeModules.test('/foo/node_modules/bar.js');
//=> true
nodeModules.test('/foo/bar.js');
//=> false
API
The returned value is a regular expression, soooo.....
License
MIT © James Talmage