node-babel7/node-modules-regexp
openKylinBot dd573fc792 Import Upstream version 7.12.12+~cs150.141.84 2022-05-19 14:58:36 +08:00
..
.editorconfig Import Upstream version 7.12.12+~cs150.141.84 2022-05-19 14:58:36 +08:00
.gitattributes Import Upstream version 7.12.12+~cs150.141.84 2022-05-19 14:58:36 +08:00
.gitignore Import Upstream version 7.12.12+~cs150.141.84 2022-05-19 14:58:36 +08:00
.travis.yml Import Upstream version 7.12.12+~cs150.141.84 2022-05-19 14:58:36 +08:00
index.js Import Upstream version 7.12.12+~cs150.141.84 2022-05-19 14:58:36 +08:00
license Import Upstream version 7.12.12+~cs150.141.84 2022-05-19 14:58:36 +08:00
package.json Import Upstream version 7.12.12+~cs150.141.84 2022-05-19 14:58:36 +08:00
readme.md Import Upstream version 7.12.12+~cs150.141.84 2022-05-19 14:58:36 +08:00
test.js Import Upstream version 7.12.12+~cs150.141.84 2022-05-19 14:58:36 +08:00

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