github-pages-deploy-action/node_modules/node-modules-regexp
2020-01-27 23:58:23 -05:00
..
index.js Test... 2020-01-27 23:58:23 -05:00
license Test... 2020-01-27 23:58:23 -05:00
package.json Test... 2020-01-27 23:58:23 -05:00
readme.md Test... 2020-01-27 23:58:23 -05: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