setup-node/node_modules/node-modules-regexp
Danny McCormick c3f0a8be66 Use husky
2019-06-05 11:34:47 -04:00
..
2019-06-05 11:34:47 -04:00
2019-06-05 11:34:47 -04:00
2019-06-05 11:34:47 -04:00
2019-06-05 11:34:47 -04: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