You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
setup-go/node_modules/node-modules-regexp
Stephen Franceschelli a966e84ff9 Fix. 6 years ago
..
index.js Fix. 6 years ago
license Fix. 6 years ago
package.json Fix. 6 years ago
readme.md Fix. 6 years ago

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