A regular expression for file paths that contain a
node_modules
folder.
$ npm install --save node-modules-regexp
const nodeModules = require('node-modules-regexp');
nodeModules.test('/foo/node_modules/bar.js');
//=> true
nodeModules.test('/foo/bar.js');
//=> false
The returned value is a regular expression, soooo.....
MIT © James Talmage