David Gamero 9860cfe0c2
release v1.5 (#162)
Co-authored-by: David Gamero <davidgamero@microsoft.com>
2021-12-09 16:44:30 -05:00

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