Template Upload
This commit is contained in:
21
node_modules/glob-base/LICENSE
generated
vendored
Normal file
21
node_modules/glob-base/LICENSE
generated
vendored
Normal file
@ -0,0 +1,21 @@
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2015, Jon Schlinkert.
|
||||
|
||||
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.
|
158
node_modules/glob-base/README.md
generated
vendored
Normal file
158
node_modules/glob-base/README.md
generated
vendored
Normal file
@ -0,0 +1,158 @@
|
||||
# glob-base [](http://badge.fury.io/js/glob-base) [](https://travis-ci.org/jonschlinkert/glob-base)
|
||||
|
||||
> Returns an object with the (non-glob) base path and the actual pattern.
|
||||
|
||||
Use [glob-parent](https://github.com/es128/glob-parent) if you just want the base path.
|
||||
|
||||
## Install with [npm](npmjs.org)
|
||||
|
||||
```bash
|
||||
npm i glob-base --save
|
||||
```
|
||||
|
||||
## Related projects
|
||||
* [glob-parent](https://github.com/es128/glob-parent): Strips glob magic from a string to provide the parent path
|
||||
* [micromatch](https://github.com/jonschlinkert/micromatch): Glob matching for javascript/node.js. A faster alternative to minimatch (10-45x faster on avg), with all the features you're used to using in your Grunt and gulp tasks.
|
||||
* [parse-glob](https://github.com/jonschlinkert/parse-glob): Parse a glob pattern into an object of tokens.
|
||||
* [is-glob](https://github.com/jonschlinkert/is-glob): Returns `true` if the given string looks like a glob pattern.
|
||||
* [braces](https://github.com/jonschlinkert/braces): Fastest brace expansion for node.js, with the most complete support for the Bash 4.3 braces specification.
|
||||
* [fill-range](https://github.com/jonschlinkert/fill-range): Fill in a range of numbers or letters, optionally passing an increment or multiplier to use.
|
||||
* [expand-range](https://github.com/jonschlinkert/expand-range): Fast, bash-like range expansion. Expand a range of numbers or letters, uppercase or lowercase. See the benchmarks. Used by micromatch.
|
||||
|
||||
## Usage
|
||||
|
||||
```js
|
||||
var globBase = require('glob-base');
|
||||
|
||||
globBase('a/b/.git/');
|
||||
//=> { base: 'a/b/.git/', isGlob: false, glob: '' })
|
||||
|
||||
globBase('a/b/**/e');
|
||||
//=> { base: 'a/b', isGlob: true, glob: '**/e' }
|
||||
|
||||
globBase('a/b/*.{foo,bar}');
|
||||
//=> { base: 'a/b', isGlob: true, glob: '*.{foo,bar}' }
|
||||
|
||||
globBase('a/b/.git/**');
|
||||
//=> { base: 'a/b/.git', isGlob: true, glob: '**' }
|
||||
|
||||
globBase('a/b/c/*.md');
|
||||
//=> { base: 'a/b/c', isGlob: true, glob: '*.md' }
|
||||
|
||||
globBase('a/b/c/.*.md');
|
||||
//=> { base: 'a/b/c', isGlob: true, glob: '.*.md' }
|
||||
|
||||
globBase('a/b/{c,d}');
|
||||
//=> { base: 'a/b', isGlob: true, glob: '{c,d}' }
|
||||
|
||||
globBase('!*.min.js');
|
||||
//=> { base: '.', isGlob: true, glob: '!*.min.js' }
|
||||
|
||||
globBase('!foo');
|
||||
//=> { base: '.', isGlob: true, glob: '!foo' }
|
||||
|
||||
globBase('!foo/(a|b).min.js');
|
||||
//=> { base: '.', isGlob: true, glob: '!foo/(a|b).min.js' }
|
||||
|
||||
globBase('');
|
||||
//=> { base: '.', isGlob: false, glob: '' }
|
||||
|
||||
globBase('**/*.md');
|
||||
//=> { base: '.', isGlob: true, glob: '**/*.md' }
|
||||
|
||||
globBase('**/*.min.js');
|
||||
//=> { base: '.', isGlob: true, glob: '**/*.min.js' }
|
||||
|
||||
globBase('**/.*');
|
||||
//=> { base: '.', isGlob: true, glob: '**/.*' }
|
||||
|
||||
globBase('**/d');
|
||||
//=> { base: '.', isGlob: true, glob: '**/d' }
|
||||
|
||||
globBase('*.*');
|
||||
//=> { base: '.', isGlob: true, glob: '*.*' }
|
||||
|
||||
globBase('*.min.js');
|
||||
//=> { base: '.', isGlob: true, glob: '*.min.js' }
|
||||
|
||||
globBase('*/*');
|
||||
//=> { base: '.', isGlob: true, glob: '*/*' }
|
||||
|
||||
globBase('*b');
|
||||
//=> { base: '.', isGlob: true, glob: '*b' }
|
||||
|
||||
globBase('.');
|
||||
//=> { base: '.', isGlob: false, glob: '.' }
|
||||
|
||||
globBase('.*');
|
||||
//=> { base: '.', isGlob: true, glob: '.*' }
|
||||
|
||||
globBase('./*');
|
||||
//=> { base: '.', isGlob: true, glob: '*' }
|
||||
|
||||
globBase('/a');
|
||||
//=> { base: '/', isGlob: false, glob: 'a' }
|
||||
|
||||
globBase('@(a|b)/e.f.g/');
|
||||
//=> { base: '.', isGlob: true, glob: '@(a|b)/e.f.g/' }
|
||||
|
||||
globBase('[a-c]b*');
|
||||
//=> { base: '.', isGlob: true, glob: '[a-c]b*' }
|
||||
|
||||
globBase('a');
|
||||
//=> { base: '.', isGlob: false, glob: 'a' }
|
||||
|
||||
globBase('a.min.js');
|
||||
//=> { base: '.', isGlob: false, glob: 'a.min.js' }
|
||||
|
||||
globBase('a/');
|
||||
//=> { base: 'a/', isGlob: false, glob: '' }
|
||||
|
||||
globBase('a/**/j/**/z/*.md');
|
||||
//=> { base: 'a', isGlob: true, glob: '**/j/**/z/*.md' }
|
||||
|
||||
globBase('a/*/c/*.md');
|
||||
//=> { base: 'a', isGlob: true, glob: '*/c/*.md' }
|
||||
|
||||
globBase('a/?/c.md');
|
||||
//=> { base: 'a', isGlob: true, glob: '?/c.md' }
|
||||
|
||||
globBase('a/??/c.js');
|
||||
//=> { base: 'a', isGlob: true, glob: '??/c.js' }
|
||||
|
||||
globBase('a?b');
|
||||
//=> { base: '.', isGlob: true, glob: 'a?b' }
|
||||
|
||||
globBase('bb');
|
||||
//=> { base: '.', isGlob: false, glob: 'bb' }
|
||||
|
||||
globBase('c.md');
|
||||
//=> { base: '.', isGlob: false, glob: 'c.md' }
|
||||
```
|
||||
|
||||
## Running tests
|
||||
Install dev dependencies.
|
||||
|
||||
```bash
|
||||
npm i -d && npm test
|
||||
```
|
||||
|
||||
|
||||
## Contributing
|
||||
Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/jonschlinkert/glob-base/issues)
|
||||
|
||||
|
||||
## Author
|
||||
|
||||
**Jon Schlinkert**
|
||||
|
||||
+ [github/jonschlinkert](https://github.com/jonschlinkert)
|
||||
+ [twitter/jonschlinkert](http://twitter.com/jonschlinkert)
|
||||
|
||||
## License
|
||||
Copyright (c) 2015 Jon Schlinkert
|
||||
Released under the MIT license
|
||||
|
||||
***
|
||||
|
||||
_This file was generated by [verb-cli](https://github.com/assemble/verb-cli) on March 08, 2015._
|
51
node_modules/glob-base/index.js
generated
vendored
Normal file
51
node_modules/glob-base/index.js
generated
vendored
Normal file
@ -0,0 +1,51 @@
|
||||
/*!
|
||||
* glob-base <https://github.com/jonschlinkert/glob-base>
|
||||
*
|
||||
* Copyright (c) 2015, Jon Schlinkert.
|
||||
* Licensed under the MIT License.
|
||||
*/
|
||||
|
||||
'use strict';
|
||||
|
||||
var path = require('path');
|
||||
var parent = require('glob-parent');
|
||||
var isGlob = require('is-glob');
|
||||
|
||||
module.exports = function globBase(pattern) {
|
||||
if (typeof pattern !== 'string') {
|
||||
throw new TypeError('glob-base expects a string.');
|
||||
}
|
||||
|
||||
var res = {};
|
||||
res.base = parent(pattern);
|
||||
res.isGlob = isGlob(pattern);
|
||||
|
||||
if (res.base !== '.') {
|
||||
res.glob = pattern.substr(res.base.length);
|
||||
if (res.glob.charAt(0) === '/') {
|
||||
res.glob = res.glob.substr(1);
|
||||
}
|
||||
} else {
|
||||
res.glob = pattern;
|
||||
}
|
||||
|
||||
if (!res.isGlob) {
|
||||
res.base = dirname(pattern);
|
||||
res.glob = res.base !== '.'
|
||||
? pattern.substr(res.base.length)
|
||||
: pattern;
|
||||
}
|
||||
|
||||
if (res.glob.substr(0, 2) === './') {
|
||||
res.glob = res.glob.substr(2);
|
||||
}
|
||||
if (res.glob.charAt(0) === '/') {
|
||||
res.glob = res.glob.substr(1);
|
||||
}
|
||||
return res;
|
||||
};
|
||||
|
||||
function dirname(glob) {
|
||||
if (glob.slice(-1) === '/') return glob;
|
||||
return path.dirname(glob);
|
||||
}
|
107
node_modules/glob-base/package.json
generated
vendored
Normal file
107
node_modules/glob-base/package.json
generated
vendored
Normal file
@ -0,0 +1,107 @@
|
||||
{
|
||||
"_args": [
|
||||
[
|
||||
"glob-base@^0.3.0",
|
||||
"C:\\Users\\x2mjbyrn\\Source\\Repos\\Skeleton\\node_modules\\parse-glob"
|
||||
]
|
||||
],
|
||||
"_from": "glob-base@>=0.3.0-0 <0.4.0-0",
|
||||
"_id": "glob-base@0.3.0",
|
||||
"_inCache": true,
|
||||
"_location": "/glob-base",
|
||||
"_nodeVersion": "0.12.7",
|
||||
"_npmUser": {
|
||||
"email": "elan.shanker+npm@gmail.com",
|
||||
"name": "es128"
|
||||
},
|
||||
"_npmVersion": "2.11.3",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"name": "glob-base",
|
||||
"raw": "glob-base@^0.3.0",
|
||||
"rawSpec": "^0.3.0",
|
||||
"scope": null,
|
||||
"spec": ">=0.3.0-0 <0.4.0-0",
|
||||
"type": "range"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/parse-glob"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/glob-base/-/glob-base-0.3.0.tgz",
|
||||
"_shasum": "dbb164f6221b1c0b1ccf82aea328b497df0ea3c4",
|
||||
"_shrinkwrap": null,
|
||||
"_spec": "glob-base@^0.3.0",
|
||||
"_where": "C:\\Users\\x2mjbyrn\\Source\\Repos\\Skeleton\\node_modules\\parse-glob",
|
||||
"author": {
|
||||
"name": "Jon Schlinkert",
|
||||
"url": "https://github.com/jonschlinkert"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/jonschlinkert/glob-base/issues"
|
||||
},
|
||||
"dependencies": {
|
||||
"glob-parent": "^2.0.0",
|
||||
"is-glob": "^2.0.0"
|
||||
},
|
||||
"description": "Returns an object with the (non-glob) base path and the actual pattern.",
|
||||
"devDependencies": {
|
||||
"mocha": "*",
|
||||
"should": "^5.1.0"
|
||||
},
|
||||
"directories": {},
|
||||
"dist": {
|
||||
"shasum": "dbb164f6221b1c0b1ccf82aea328b497df0ea3c4",
|
||||
"tarball": "https://registry.npmjs.org/glob-base/-/glob-base-0.3.0.tgz"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=0.10.0"
|
||||
},
|
||||
"files": [
|
||||
"index.js"
|
||||
],
|
||||
"gitHead": "adbc0ab07ec8a85f76ffd1b54dd41cdb9d1d0b83",
|
||||
"homepage": "https://github.com/jonschlinkert/glob-base",
|
||||
"installable": true,
|
||||
"keywords": [
|
||||
"base",
|
||||
"directory",
|
||||
"dirname",
|
||||
"expression",
|
||||
"glob",
|
||||
"parent",
|
||||
"path",
|
||||
"pattern",
|
||||
"regex",
|
||||
"regular",
|
||||
"root"
|
||||
],
|
||||
"license": {
|
||||
"type": "MIT",
|
||||
"url": "https://github.com/jonschlinkert/glob-base/blob/master/LICENSE"
|
||||
},
|
||||
"main": "index.js",
|
||||
"maintainers": [
|
||||
{
|
||||
"name": "doowb",
|
||||
"email": "brian.woodward@gmail.com"
|
||||
},
|
||||
{
|
||||
"name": "es128",
|
||||
"email": "elan.shanker+npm@gmail.com"
|
||||
},
|
||||
{
|
||||
"name": "jonschlinkert",
|
||||
"email": "github@sellside.com"
|
||||
}
|
||||
],
|
||||
"name": "glob-base",
|
||||
"optionalDependencies": {},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git://github.com/jonschlinkert/glob-base.git"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "mocha"
|
||||
},
|
||||
"version": "0.3.0"
|
||||
}
|
Reference in New Issue
Block a user