This commit is contained in:
eric sciple 2020-01-24 12:20:47 -05:00
parent a004f0ae58
commit fc725ba36b
7280 changed files with 19 additions and 1796407 deletions

View file

@ -1,2 +0,0 @@
'use strict';
module.exports = /^(?:.*[\\\/])?node_modules(?:[\\\/].*)?$/;

View file

@ -1,21 +0,0 @@
The MIT License (MIT)
Copyright (c) James Talmage <james@talmage.io> (github.com/jamestalmage)
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.

View file

@ -1,80 +0,0 @@
{
"_args": [
[
"node-modules-regexp@1.0.0",
"/Users/eric/repos/actions/setup-node"
]
],
"_development": true,
"_from": "node-modules-regexp@1.0.0",
"_id": "node-modules-regexp@1.0.0",
"_inBundle": false,
"_integrity": "sha1-jZ2+KJZKSsVxLpExZCEHxx6Q7EA=",
"_location": "/node-modules-regexp",
"_phantomChildren": {},
"_requested": {
"type": "version",
"registry": true,
"raw": "node-modules-regexp@1.0.0",
"name": "node-modules-regexp",
"escapedName": "node-modules-regexp",
"rawSpec": "1.0.0",
"saveSpec": null,
"fetchSpec": "1.0.0"
},
"_requiredBy": [
"/pirates"
],
"_resolved": "https://registry.npmjs.org/node-modules-regexp/-/node-modules-regexp-1.0.0.tgz",
"_spec": "1.0.0",
"_where": "/Users/eric/repos/actions/setup-node",
"author": {
"name": "James Talmage",
"email": "james@talmage.io",
"url": "github.com/jamestalmage"
},
"bugs": {
"url": "https://github.com/jamestalmage/node-modules-regexp/issues"
},
"dependencies": {},
"description": "A regular expression for file paths that contain a `node_modules` folder.",
"devDependencies": {
"ava": "^0.7.0",
"xo": "^0.11.2"
},
"engines": {
"node": ">=0.10.0"
},
"files": [
"index.js"
],
"homepage": "https://github.com/jamestalmage/node-modules-regexp#readme",
"keywords": [
"node_modules",
"regular expression",
"regular expressions",
"regular",
"expression",
"expressions",
"exclude",
"include",
"ignore",
"node",
"module"
],
"license": "MIT",
"name": "node-modules-regexp",
"repository": {
"type": "git",
"url": "git+https://github.com/jamestalmage/node-modules-regexp.git"
},
"scripts": {
"test": "xo && ava"
},
"version": "1.0.0",
"xo": {
"ignores": [
"test.js"
]
}
}

View file

@ -1,32 +0,0 @@
# 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)