login/node_modules/node-modules-regexp/readme.md
Rakesh Kumar 807bb60301
Update build files and add node_modules (#54)
* update build files

* add node_modules
2020-09-23 12:15:33 +05:30

710 B

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