Irina Glushko 2389e7160b HW1 done | 3 gadi atpakaļ | |
---|---|---|
.. | ||
index.js | 3 gadi atpakaļ | |
license | 3 gadi atpakaļ | |
package.json | 3 gadi atpakaļ | |
readme.md | 3 gadi atpakaļ |
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