setup-kubectl/node_modules/node-modules-regexp
2022-03-03 19:53:21 +00:00
..
index.js Add node modules and compiled JavaScript from main 2022-03-03 19:53:21 +00:00
license Add node modules and compiled JavaScript from main 2022-03-03 19:53:21 +00:00
package.json Add node modules and compiled JavaScript from main 2022-03-03 19:53:21 +00:00
readme.md Add node modules and compiled JavaScript from main 2022-03-03 19:53:21 +00:00

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