tree: 4fd03f0cc59ae32c2b65609a4227e1d1a2098863 [path history] [tgz]
  1. index.js
  2. license
  3. package.json
  4. readme.md
node_modules/node-modules-regexp/readme.md

node-modules-regexp Build Status

A regular expression for file paths that contain a node_modules folder.

Install

$ npm install --save node-modules-regexp

Usage

const nodeModules = require('node-modules-regexp');

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