Irina Glushko 2389e7160b HW1 done 3 vuotta sitten
..
index.js 2389e7160b HW1 done 3 vuotta sitten
license 2389e7160b HW1 done 3 vuotta sitten
package.json 2389e7160b HW1 done 3 vuotta sitten
readme.md 2389e7160b HW1 done 3 vuotta sitten

readme.md

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