# node-modules-regexp

> A regular expression for file paths that contain a `node_modules` folder.

Latest version **1.0.0** (published 2015-12-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install node-modules-regexp
pnpm add node-modules-regexp
yarn add node-modules-regexp
bun add node-modules-regexp
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2015-12-07 |
| First published | 2015-12-07 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=0.10.0 |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 8 |
| Author | James Talmage |
| Maintainers | jamestalmage |
| Keywords | node_modules, regular expression, regular expressions, regular, expression, expressions, exclude, include, ignore, node, module |

## Links

- npm: https://www.npmjs.com/package/node-modules-regexp
- Repository: https://github.com/jamestalmage/node-modules-regexp
- Homepage: https://github.com/jamestalmage/node-modules-regexp#readme
- Issues: https://github.com/jamestalmage/node-modules-regexp/issues
- npm.io page: https://npm.io/package/node-modules-regexp

## Alternatives

- [@expo/fingerprint](https://npm.io/package/@expo/fingerprint.md) — 6.2M weekly downloads
- [@azure/monitor-opentelemetry-exporter](https://npm.io/package/@azure/monitor-opentelemetry-exporter.md) — 850.0K weekly downloads
- [@azure/monitor-opentelemetry](https://npm.io/package/@azure/monitor-opentelemetry.md) — 624.0K weekly downloads
- [@posthog/ai](https://npm.io/package/@posthog/ai.md) — 423.3K weekly downloads
- [fakefilter](https://npm.io/package/fakefilter.md) — 63.9K weekly downloads

## Recent versions

- 1.0.0 (latest) — 2015-12-07

## README

# node-modules-regexp [![Build Status](https://travis-ci.org/jamestalmage/node-modules-regexp.svg?branch=master)](https://travis-ci.org/jamestalmage/node-modules-regexp)

> A regular expression for file paths that contain a `node_modules` folder.


## Install

```
$ npm install --save node-modules-regexp
```


## Usage

```js
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....](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp).

## License

MIT © [James Talmage](http://github.com/jamestalmage)

---
_Source: https://npm.io/package/node-modules-regexp · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
