Protect your apps from supply chain attacksInstall
A regular expression for file paths that contain a
$ npm install --save node-modules-regexp
const nodeModules = require('node-modules-regexp'); nodeModules.test('/foo/node_modules/bar.js'); //=> true nodeModules.test('/foo/bar.js'); //=> false
The returned value is a regular expression, soooo.....
MIT © James Talmage
A regular expression for file paths that contain a `node_modules` folder.
The npm package node-modules-regexp receives a total of 1,991,434 weekly downloads. As such, node-modules-regexp popularity was classified as popular.
We found that node-modules-regexp demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket installs a GitHub app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the dependencies.