login/node_modules/node-modules-regexp
Balaga Gayatri 8ab7113acc changes
2021-10-25 18:21:32 +05:30
..
index.js changes 2021-10-25 18:21:32 +05:30
license changes 2021-10-25 18:21:32 +05:30
package.json changes 2021-10-25 18:21:32 +05:30
readme.md changes 2021-10-25 18:21:32 +05:30

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