Template Upload
This commit is contained in:
4
node_modules/glob-parent/.npmignore
generated
vendored
Normal file
4
node_modules/glob-parent/.npmignore
generated
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
node_modules
|
||||
.DS_Store
|
||||
npm-debug.log
|
||||
coverage
|
8
node_modules/glob-parent/.travis.yml
generated
vendored
Normal file
8
node_modules/glob-parent/.travis.yml
generated
vendored
Normal file
@ -0,0 +1,8 @@
|
||||
language: node_js
|
||||
node_js:
|
||||
- "4"
|
||||
- "iojs-v3"
|
||||
- "iojs-v2"
|
||||
- "iojs-v1"
|
||||
- "0.12"
|
||||
- "0.10"
|
15
node_modules/glob-parent/LICENSE
generated
vendored
Normal file
15
node_modules/glob-parent/LICENSE
generated
vendored
Normal file
@ -0,0 +1,15 @@
|
||||
The ISC License
|
||||
|
||||
Copyright (c) 2015 Elan Shanker
|
||||
|
||||
Permission to use, copy, modify, and/or distribute this software for any
|
||||
purpose with or without fee is hereby granted, provided that the above
|
||||
copyright notice and this permission notice appear in all copies.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
||||
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
||||
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
||||
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
||||
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
||||
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
|
||||
IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
43
node_modules/glob-parent/README.md
generated
vendored
Normal file
43
node_modules/glob-parent/README.md
generated
vendored
Normal file
@ -0,0 +1,43 @@
|
||||
glob-parent [](https://travis-ci.org/es128/glob-parent) [](https://coveralls.io/r/es128/glob-parent?branch=master)
|
||||
======
|
||||
Javascript module to extract the non-magic parent path from a glob string.
|
||||
|
||||
[](https://nodei.co/npm/glob-parent/)
|
||||
[](https://nodei.co/npm-dl/glob-parent/)
|
||||
|
||||
Usage
|
||||
-----
|
||||
```sh
|
||||
npm install glob-parent --save
|
||||
```
|
||||
|
||||
```js
|
||||
var globParent = require('glob-parent');
|
||||
|
||||
globParent('path/to/*.js'); // 'path/to'
|
||||
globParent('/root/path/to/*.js'); // '/root/path/to'
|
||||
globParent('/*.js'); // '/'
|
||||
globParent('*.js'); // '.'
|
||||
globParent('**/*.js'); // '.'
|
||||
globParent('path/{to,from}'); // 'path'
|
||||
globParent('path/!(to|from)'); // 'path'
|
||||
globParent('path/?(to|from)'); // 'path'
|
||||
globParent('path/+(to|from)'); // 'path'
|
||||
globParent('path/*(to|from)'); // 'path'
|
||||
globParent('path/@(to|from)'); // 'path'
|
||||
globParent('path/**/*'); // 'path'
|
||||
|
||||
// if provided a non-glob path, returns the nearest dir
|
||||
globParent('path/foo/bar.js'); // 'path/foo'
|
||||
globParent('path/foo/'); // 'path/foo'
|
||||
globParent('path/foo'); // 'path' (see issue #3 for details)
|
||||
|
||||
```
|
||||
|
||||
Change Log
|
||||
----------
|
||||
[See release notes page on GitHub](https://github.com/es128/glob-parent/releases)
|
||||
|
||||
License
|
||||
-------
|
||||
[ISC](https://raw.github.com/es128/glob-parent/master/LICENSE)
|
10
node_modules/glob-parent/index.js
generated
vendored
Normal file
10
node_modules/glob-parent/index.js
generated
vendored
Normal file
@ -0,0 +1,10 @@
|
||||
'use strict';
|
||||
|
||||
var path = require('path');
|
||||
var isglob = require('is-glob');
|
||||
|
||||
module.exports = function globParent(str) {
|
||||
str += 'a'; // preserves full path in case of trailing path separator
|
||||
do {str = path.dirname(str)} while (isglob(str));
|
||||
return str;
|
||||
};
|
85
node_modules/glob-parent/package.json
generated
vendored
Normal file
85
node_modules/glob-parent/package.json
generated
vendored
Normal file
@ -0,0 +1,85 @@
|
||||
{
|
||||
"_args": [
|
||||
[
|
||||
"glob-parent@^2.0.0",
|
||||
"C:\\Users\\x2mjbyrn\\Source\\Repos\\Skeleton\\node_modules\\chokidar"
|
||||
]
|
||||
],
|
||||
"_from": "glob-parent@>=2.0.0-0 <3.0.0-0",
|
||||
"_id": "glob-parent@2.0.0",
|
||||
"_inCache": true,
|
||||
"_location": "/glob-parent",
|
||||
"_nodeVersion": "3.0.0",
|
||||
"_npmUser": {
|
||||
"email": "elan.shanker+npm@gmail.com",
|
||||
"name": "es128"
|
||||
},
|
||||
"_npmVersion": "2.13.3",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"name": "glob-parent",
|
||||
"raw": "glob-parent@^2.0.0",
|
||||
"rawSpec": "^2.0.0",
|
||||
"scope": null,
|
||||
"spec": ">=2.0.0-0 <3.0.0-0",
|
||||
"type": "range"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/chokidar",
|
||||
"/glob-base"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-2.0.0.tgz",
|
||||
"_shasum": "81383d72db054fcccf5336daa902f182f6edbb28",
|
||||
"_shrinkwrap": null,
|
||||
"_spec": "glob-parent@^2.0.0",
|
||||
"_where": "C:\\Users\\x2mjbyrn\\Source\\Repos\\Skeleton\\node_modules\\chokidar",
|
||||
"author": {
|
||||
"name": "Elan Shanker"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/es128/glob-parent/issues"
|
||||
},
|
||||
"dependencies": {
|
||||
"is-glob": "^2.0.0"
|
||||
},
|
||||
"description": "Strips glob magic from a string to provide the parent path",
|
||||
"devDependencies": {
|
||||
"coveralls": "^2.11.2",
|
||||
"istanbul": "^0.3.5",
|
||||
"mocha": "^2.1.0"
|
||||
},
|
||||
"directories": {},
|
||||
"dist": {
|
||||
"shasum": "81383d72db054fcccf5336daa902f182f6edbb28",
|
||||
"tarball": "https://registry.npmjs.org/glob-parent/-/glob-parent-2.0.0.tgz"
|
||||
},
|
||||
"gitHead": "a956910c7ccb5eafd1b3fe900ceb6335cc5b6d3d",
|
||||
"homepage": "https://github.com/es128/glob-parent",
|
||||
"installable": true,
|
||||
"keywords": [
|
||||
"base",
|
||||
"directory",
|
||||
"glob",
|
||||
"parent",
|
||||
"path",
|
||||
"strip"
|
||||
],
|
||||
"license": "ISC",
|
||||
"main": "index.js",
|
||||
"maintainers": [
|
||||
{
|
||||
"name": "es128",
|
||||
"email": "elan.shanker+npm@gmail.com"
|
||||
}
|
||||
],
|
||||
"name": "glob-parent",
|
||||
"optionalDependencies": {},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/es128/glob-parent.git"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "istanbul cover _mocha && cat ./coverage/lcov.info | coveralls"
|
||||
},
|
||||
"version": "2.0.0"
|
||||
}
|
28
node_modules/glob-parent/test.js
generated
vendored
Normal file
28
node_modules/glob-parent/test.js
generated
vendored
Normal file
@ -0,0 +1,28 @@
|
||||
'use strict';
|
||||
|
||||
var gp = require('./');
|
||||
var assert = require('assert');
|
||||
|
||||
describe('glob-parent', function() {
|
||||
it('should strip glob magic to return parent path', function() {
|
||||
assert.equal(gp('path/to/*.js'), 'path/to');
|
||||
assert.equal(gp('/root/path/to/*.js'), '/root/path/to');
|
||||
assert.equal(gp('/*.js'), '/');
|
||||
assert.equal(gp('*.js'), '.');
|
||||
assert.equal(gp('**/*.js'), '.');
|
||||
assert.equal(gp('path/{to,from}'), 'path');
|
||||
assert.equal(gp('path/!(to|from)'), 'path');
|
||||
assert.equal(gp('path/?(to|from)'), 'path');
|
||||
assert.equal(gp('path/+(to|from)'), 'path');
|
||||
assert.equal(gp('path/*(to|from)'), 'path');
|
||||
assert.equal(gp('path/@(to|from)'), 'path');
|
||||
assert.equal(gp('path/**/*'), 'path');
|
||||
assert.equal(gp('path/**/subdir/foo.*'), 'path');
|
||||
});
|
||||
|
||||
it('should return parent dirname from non-glob paths', function() {
|
||||
assert.equal(gp('path/foo/bar.js'), 'path/foo');
|
||||
assert.equal(gp('path/foo/'), 'path/foo');
|
||||
assert.equal(gp('path/foo'), 'path');
|
||||
});
|
||||
});
|
Reference in New Issue
Block a user