Meet npm Pro: unlimited public & private packages + package-based permissions.Learn more »

node-modules-regexp

1.0.0 • Public • Published

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

Install

npm i node-modules-regexp

DownloadsWeekly Downloads

5,115,477

Version

1.0.0

License

MIT

Last publish

Collaborators

  • avatar