mirror of
https://github.com/snachodog/just-the-docs.git
synced 2025-09-12 21:03:32 -06:00
Initial commit
This commit is contained in:
23
node_modules/execall/index.js
generated
vendored
Normal file
23
node_modules/execall/index.js
generated
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
'use strict';
|
||||
var cloneRegexp = require('clone-regexp');
|
||||
|
||||
module.exports = function (input, str) {
|
||||
var match;
|
||||
var matches = [];
|
||||
var re = cloneRegexp(input);
|
||||
var isGlobal = re.global;
|
||||
|
||||
while (match = re.exec(str)) {
|
||||
matches.push({
|
||||
match: match[0],
|
||||
sub: match.slice(1),
|
||||
index: match.index
|
||||
})
|
||||
|
||||
if (!isGlobal) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
return matches;
|
||||
};
|
21
node_modules/execall/license
generated
vendored
Normal file
21
node_modules/execall/license
generated
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
|
||||
|
||||
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.
|
102
node_modules/execall/package.json
generated
vendored
Normal file
102
node_modules/execall/package.json
generated
vendored
Normal file
@@ -0,0 +1,102 @@
|
||||
{
|
||||
"_args": [
|
||||
[
|
||||
"execall@^1.0.0",
|
||||
"/Users/pmarsceill/_projects/just-the-docs/node_modules/stylelint"
|
||||
]
|
||||
],
|
||||
"_from": "execall@>=1.0.0 <2.0.0",
|
||||
"_id": "execall@1.0.0",
|
||||
"_inCache": true,
|
||||
"_installable": true,
|
||||
"_location": "/execall",
|
||||
"_nodeVersion": "0.12.4",
|
||||
"_npmUser": {
|
||||
"email": "sindresorhus@gmail.com",
|
||||
"name": "sindresorhus"
|
||||
},
|
||||
"_npmVersion": "2.10.1",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"name": "execall",
|
||||
"raw": "execall@^1.0.0",
|
||||
"rawSpec": "^1.0.0",
|
||||
"scope": null,
|
||||
"spec": ">=1.0.0 <2.0.0",
|
||||
"type": "range"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/stylelint"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/execall/-/execall-1.0.0.tgz",
|
||||
"_shasum": "73d0904e395b3cab0658b08d09ec25307f29bb73",
|
||||
"_shrinkwrap": null,
|
||||
"_spec": "execall@^1.0.0",
|
||||
"_where": "/Users/pmarsceill/_projects/just-the-docs/node_modules/stylelint",
|
||||
"author": {
|
||||
"email": "sindresorhus@gmail.com",
|
||||
"name": "Sindre Sorhus",
|
||||
"url": "sindresorhus.com"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/sindresorhus/execall/issues"
|
||||
},
|
||||
"dependencies": {
|
||||
"clone-regexp": "^1.0.0"
|
||||
},
|
||||
"description": "Find multiple RegExp matches in a string",
|
||||
"devDependencies": {
|
||||
"ava": "0.0.4"
|
||||
},
|
||||
"directories": {},
|
||||
"dist": {
|
||||
"shasum": "73d0904e395b3cab0658b08d09ec25307f29bb73",
|
||||
"tarball": "https://registry.npmjs.org/execall/-/execall-1.0.0.tgz"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=0.10.0"
|
||||
},
|
||||
"files": [
|
||||
"index.js"
|
||||
],
|
||||
"gitHead": "18797f2b16558e1c6ef2c78e816e963fa632d0f9",
|
||||
"homepage": "https://github.com/sindresorhus/execall",
|
||||
"keywords": [
|
||||
"all",
|
||||
"exec",
|
||||
"execall",
|
||||
"expression",
|
||||
"find",
|
||||
"findall",
|
||||
"global",
|
||||
"immutable",
|
||||
"many",
|
||||
"match",
|
||||
"matches",
|
||||
"multiple",
|
||||
"re",
|
||||
"regex",
|
||||
"regexp",
|
||||
"regular",
|
||||
"str",
|
||||
"string"
|
||||
],
|
||||
"license": "MIT",
|
||||
"maintainers": [
|
||||
{
|
||||
"name": "sindresorhus",
|
||||
"email": "sindresorhus@gmail.com"
|
||||
}
|
||||
],
|
||||
"name": "execall",
|
||||
"optionalDependencies": {},
|
||||
"readme": "ERROR: No README data found!",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/sindresorhus/execall.git"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "node test.js"
|
||||
},
|
||||
"version": "1.0.0"
|
||||
}
|
57
node_modules/execall/readme.md
generated
vendored
Normal file
57
node_modules/execall/readme.md
generated
vendored
Normal file
@@ -0,0 +1,57 @@
|
||||
# execall [](https://travis-ci.org/sindresorhus/execall)
|
||||
|
||||
> Find multiple RegExp matches in a string
|
||||
|
||||
Instead of having to iterate over `RegExp#exec`, immutable, and with a nicer result format.
|
||||
|
||||
|
||||
## Install
|
||||
|
||||
```
|
||||
$ npm install --save execall
|
||||
```
|
||||
|
||||
|
||||
## Usage
|
||||
|
||||
```js
|
||||
var execall = require('execall');
|
||||
|
||||
execall(/(\d+)/g, '$200 and $400');
|
||||
/*
|
||||
[
|
||||
{
|
||||
match: '200',
|
||||
sub: ['200'],
|
||||
index: 1
|
||||
},
|
||||
{
|
||||
match: '400',
|
||||
sub: ['400'],
|
||||
index: 10
|
||||
}
|
||||
]
|
||||
*/
|
||||
```
|
||||
|
||||
|
||||
## API
|
||||
|
||||
### execall(re, input)
|
||||
|
||||
Returns an array of objects with a match, sub-matches, and index.
|
||||
|
||||
#### re
|
||||
|
||||
Type: `regexp`
|
||||
|
||||
Regular expression to match against the `input`.
|
||||
|
||||
#### input
|
||||
|
||||
Type: `string`
|
||||
|
||||
|
||||
## License
|
||||
|
||||
MIT © [Sindre Sorhus](http://sindresorhus.com)
|
Reference in New Issue
Block a user