install gulp to process code
This commit is contained in:
parent
24f6606c2c
commit
b6a3900ee2
1651 changed files with 253427 additions and 39 deletions
21
node_modules/lookup-path/LICENSE
generated
vendored
Normal file
21
node_modules/lookup-path/LICENSE
generated
vendored
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2014-2016, 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.
|
||||
58
node_modules/lookup-path/README.md
generated
vendored
Normal file
58
node_modules/lookup-path/README.md
generated
vendored
Normal file
|
|
@ -0,0 +1,58 @@
|
|||
# lookup-path [](https://www.npmjs.com/package/lookup-path) [](https://travis-ci.org/jonschlinkert/lookup-path)
|
||||
|
||||
> Attempt to resolve the absolute filepath to a file and verify that it exists.
|
||||
|
||||
You might also be interested in [is-absolute](https://github.com/jonschlinkert/is-absolute).
|
||||
|
||||
## Install
|
||||
|
||||
Install with [npm](https://www.npmjs.com/):
|
||||
|
||||
```sh
|
||||
$ npm i lookup-path --save
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
||||
```js
|
||||
var lookup = require('lookup-path');
|
||||
console.log(lookup('package.json'));
|
||||
//=> '~/package.json'
|
||||
|
||||
// pass a cwd as a second parameter
|
||||
lookup('foo.js', 'test');
|
||||
```
|
||||
|
||||
## Related projects
|
||||
|
||||
* [is-absolute](https://www.npmjs.com/package/is-absolute): Returns true if a file path is absolute. | [homepage](https://github.com/jonschlinkert/is-absolute)
|
||||
* [is-relative](https://www.npmjs.com/package/is-relative): Returns `true` if the path appears to be relative. | [homepage](https://github.com/jonschlinkert/is-relative)
|
||||
* [is-windows](https://www.npmjs.com/package/is-windows): Returns true if the platform is windwows. | [homepage](https://github.com/jonschlinkert/is-windows)
|
||||
|
||||
## Running tests
|
||||
|
||||
Install dev dependencies:
|
||||
|
||||
```sh
|
||||
$ 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/lookup-path/issues/new).
|
||||
|
||||
## Author
|
||||
|
||||
**Jon Schlinkert**
|
||||
|
||||
* [github/jonschlinkert](https://github.com/jonschlinkert)
|
||||
* [twitter/jonschlinkert](http://twitter.com/jonschlinkert)
|
||||
|
||||
## License
|
||||
|
||||
Copyright © 2016 [Jon Schlinkert](https://github.com/jonschlinkert)
|
||||
Released under the [MIT license](https://github.com/jonschlinkert/lookup-path/blob/master/LICENSE).
|
||||
|
||||
***
|
||||
|
||||
_This file was generated by [verb](https://github.com/verbose/verb), v0.9.0, on February 07, 2016._
|
||||
44
node_modules/lookup-path/index.js
generated
vendored
Normal file
44
node_modules/lookup-path/index.js
generated
vendored
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
/*!
|
||||
* lookup-path <https://github.com/jonschlinkert/lookup-path>
|
||||
*
|
||||
* Copyright (c) 2014 Jon Schlinkert, contributors.
|
||||
* Licensed under the MIT license.
|
||||
*/
|
||||
|
||||
'use strict';
|
||||
|
||||
var fs = require('fs');
|
||||
var path = require('path');
|
||||
var debug = require('debug')('lookup-path');
|
||||
var isAbsolute = require('is-absolute');
|
||||
|
||||
/**
|
||||
* **Example:**
|
||||
*
|
||||
* ```js
|
||||
* var lookup = require('lookup-path');
|
||||
* var file = lookup('package.json');
|
||||
* ```
|
||||
*
|
||||
* @param {String} `filepath`
|
||||
* @param {Object} `options`
|
||||
* @return {String}
|
||||
*/
|
||||
|
||||
module.exports = function lookup(filepath, cwd) {
|
||||
debug('looking up filepath "%s" at cwd "%s"', filepath, cwd);
|
||||
if (typeof filepath !== 'string') {
|
||||
return filepath; // implementors should do their own validation
|
||||
}
|
||||
cwd = cwd || process.cwd();
|
||||
if (isAbsolute(filepath)) {
|
||||
return filepath;
|
||||
} else if (fs.existsSync(path.join(cwd, filepath))) {
|
||||
return path.join(cwd, filepath);
|
||||
} else if (fs.existsSync(path.resolve(cwd, filepath))) {
|
||||
return path.resolve(cwd, filepath);
|
||||
} else {
|
||||
debug('cannot find: %s', filepath);
|
||||
return null;
|
||||
}
|
||||
};
|
||||
21
node_modules/lookup-path/node_modules/is-absolute/LICENSE
generated
vendored
Normal file
21
node_modules/lookup-path/node_modules/is-absolute/LICENSE
generated
vendored
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2014-2016, Jon Schlinkert.Copyright (c) 2009-2016, TJ Holowaychuk.
|
||||
|
||||
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.
|
||||
113
node_modules/lookup-path/node_modules/is-absolute/README.md
generated
vendored
Normal file
113
node_modules/lookup-path/node_modules/is-absolute/README.md
generated
vendored
Normal file
|
|
@ -0,0 +1,113 @@
|
|||
# is-absolute [](https://www.npmjs.com/package/is-absolute) [](https://npmjs.org/package/is-absolute) [](https://travis-ci.org/jonschlinkert/is-absolute)
|
||||
|
||||
> Polyfill for node.js `path.isAbolute`. Returns true if a file path is absolute.
|
||||
|
||||
## Install
|
||||
|
||||
Install with [npm](https://www.npmjs.com/):
|
||||
|
||||
```sh
|
||||
$ npm install --save is-absolute
|
||||
```
|
||||
|
||||
Originally based on the `isAbsolute` utility method in [express](https://github.com/visionmedia/express).
|
||||
|
||||
## Usage
|
||||
|
||||
```js
|
||||
var isAbsolute = require('is-absolute');
|
||||
|
||||
isAbsolute('a/b/c.js');
|
||||
//=> 'false'
|
||||
isAbsolute('/a/b/c.js');
|
||||
//=> 'true'
|
||||
```
|
||||
|
||||
**Explicitly test windows paths**
|
||||
|
||||
```js
|
||||
isAbsolute.posix('/foo/bar');
|
||||
isAbsolute.posix('/user/docs/Letter.txt');
|
||||
//=> true
|
||||
|
||||
isAbsolute.posix('foo/bar');
|
||||
//=> false
|
||||
```
|
||||
|
||||
**Explicitly test windows paths**
|
||||
|
||||
```js
|
||||
var isAbsolute = require('is-absolute');
|
||||
|
||||
isAbsolute.win32('c:\\');
|
||||
isAbsolute.win32('//C://user\\docs\\Letter.txt');
|
||||
isAbsolute.win32('\\\\unc\\share');
|
||||
isAbsolute.win32('\\\\unc\\share\\foo');
|
||||
isAbsolute.win32('\\\\unc\\share\\foo\\');
|
||||
isAbsolute.win32('\\\\unc\\share\\foo\\bar');
|
||||
isAbsolute.win32('\\\\unc\\share\\foo\\bar\\');
|
||||
isAbsolute.win32('\\\\unc\\share\\foo\\bar\\baz');
|
||||
//=> true
|
||||
|
||||
isAbsolute.win32('a:foo/a/b/c/d');
|
||||
isAbsolute.win32(':\\');
|
||||
isAbsolute.win32('foo\\bar\\baz');
|
||||
isAbsolute.win32('foo\\bar\\baz\\');
|
||||
//=> false
|
||||
```
|
||||
|
||||
## About
|
||||
|
||||
### Related projects
|
||||
|
||||
* [is-dotfile](https://www.npmjs.com/package/is-dotfile): Return true if a file path is (or has) a dotfile. Returns false if the… [more](https://github.com/jonschlinkert/is-dotfile) | [homepage](https://github.com/jonschlinkert/is-dotfile)
|
||||
* [is-glob](https://www.npmjs.com/package/is-glob): Returns `true` if the given string looks like a glob pattern or an extglob pattern… [more](https://github.com/jonschlinkert/is-glob) | [homepage](https://github.com/jonschlinkert/is-glob)
|
||||
* [is-relative](https://www.npmjs.com/package/is-relative): Returns `true` if the path appears to be relative. | [homepage](https://github.com/jonschlinkert/is-relative)
|
||||
* [is-unc-path](https://www.npmjs.com/package/is-unc-path): Returns true if a filepath is a windows UNC file path. | [homepage](https://github.com/jonschlinkert/is-unc-path)
|
||||
* [is-valid-glob](https://www.npmjs.com/package/is-valid-glob): Return true if a value is a valid glob pattern or patterns. | [homepage](https://github.com/jonschlinkert/is-valid-glob)
|
||||
|
||||
### Contributing
|
||||
|
||||
Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new).
|
||||
|
||||
### Contributors
|
||||
|
||||
| **Commits** | **Contributor**<br/> |
|
||||
| --- | --- |
|
||||
| 31 | [jonschlinkert](https://github.com/jonschlinkert) |
|
||||
| 1 | [es128](https://github.com/es128) |
|
||||
| 1 | [shinnn](https://github.com/shinnn) |
|
||||
|
||||
### Building docs
|
||||
|
||||
_(This document was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme) (a [verb](https://github.com/verbose/verb) generator), please don't edit the readme directly. Any changes to the readme must be made in [.verb.md](.verb.md).)_
|
||||
|
||||
To generate the readme and API documentation with [verb](https://github.com/verbose/verb):
|
||||
|
||||
```sh
|
||||
$ npm install -g verb verb-generate-readme && verb
|
||||
```
|
||||
|
||||
### Running tests
|
||||
|
||||
Install dev dependencies:
|
||||
|
||||
```sh
|
||||
$ npm install -d && npm test
|
||||
```
|
||||
|
||||
### Author
|
||||
|
||||
**Jon Schlinkert**
|
||||
|
||||
* [github/jonschlinkert](https://github.com/jonschlinkert)
|
||||
* [twitter/jonschlinkert](http://twitter.com/jonschlinkert)
|
||||
|
||||
### License
|
||||
|
||||
Copyright © 2016, [Jon Schlinkert](https://github.com/jonschlinkert).
|
||||
Released under the [MIT license](https://github.com/jonschlinkert/is-absolute/blob/master/LICENSE).
|
||||
|
||||
***
|
||||
|
||||
_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.1.31, on October 16, 2016._
|
||||
47
node_modules/lookup-path/node_modules/is-absolute/index.js
generated
vendored
Normal file
47
node_modules/lookup-path/node_modules/is-absolute/index.js
generated
vendored
Normal file
|
|
@ -0,0 +1,47 @@
|
|||
'use strict';
|
||||
|
||||
var isRelative = require('is-relative');
|
||||
var isWindows = require('is-windows');
|
||||
|
||||
/**
|
||||
* Expose `isAbsolute`
|
||||
*/
|
||||
|
||||
module.exports = isAbsolute;
|
||||
|
||||
/**
|
||||
* Returns true if a file path is absolute.
|
||||
*
|
||||
* @param {String} `fp`
|
||||
* @return {Boolean}
|
||||
*/
|
||||
|
||||
function isAbsolute(fp) {
|
||||
if (typeof fp !== 'string') {
|
||||
throw new TypeError('isAbsolute expects a string.');
|
||||
}
|
||||
return isWindows() ? isAbsolute.win32(fp) : isAbsolute.posix(fp);
|
||||
}
|
||||
|
||||
/**
|
||||
* Test posix paths.
|
||||
*/
|
||||
|
||||
isAbsolute.posix = function posixPath(fp) {
|
||||
return fp.charAt(0) === '/';
|
||||
};
|
||||
|
||||
/**
|
||||
* Test windows paths.
|
||||
*/
|
||||
|
||||
isAbsolute.win32 = function win32(fp) {
|
||||
if (/[a-z]/i.test(fp.charAt(0)) && fp.charAt(1) === ':' && fp.charAt(2) === '\\') {
|
||||
return true;
|
||||
}
|
||||
// Microsoft Azure absolute filepath
|
||||
if (fp.slice(0, 2) === '\\\\') {
|
||||
return true;
|
||||
}
|
||||
return !isRelative(fp);
|
||||
};
|
||||
90
node_modules/lookup-path/node_modules/is-absolute/package.json
generated
vendored
Normal file
90
node_modules/lookup-path/node_modules/is-absolute/package.json
generated
vendored
Normal file
|
|
@ -0,0 +1,90 @@
|
|||
{
|
||||
"name": "is-absolute",
|
||||
"description": "Polyfill for node.js `path.isAbolute`. Returns true if a file path is absolute.",
|
||||
"version": "0.2.6",
|
||||
"homepage": "https://github.com/jonschlinkert/is-absolute",
|
||||
"author": "Jon Schlinkert (https://github.com/jonschlinkert)",
|
||||
"contributors": [
|
||||
"Elan Shanker (https://github.com/es128)",
|
||||
"Jon Schlinkert <jon.schlinkert@sellside.com> (http://twitter.com/jonschlinkert)",
|
||||
"Shinnosuke Watanabe <snnskwtnb@gmail.com> (https://shinnn.github.io)"
|
||||
],
|
||||
"repository": "jonschlinkert/is-absolute",
|
||||
"bugs": {
|
||||
"url": "https://github.com/jonschlinkert/is-absolute/issues"
|
||||
},
|
||||
"license": "MIT",
|
||||
"files": [
|
||||
"index.js"
|
||||
],
|
||||
"main": "index.js",
|
||||
"engines": {
|
||||
"node": ">=0.10.0"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "mocha"
|
||||
},
|
||||
"dependencies": {
|
||||
"is-relative": "^0.2.1",
|
||||
"is-windows": "^0.2.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"gulp-format-md": "^0.1.7",
|
||||
"mocha": "^2.4.5"
|
||||
},
|
||||
"keywords": [
|
||||
"absolute",
|
||||
"built",
|
||||
"built-in",
|
||||
"check",
|
||||
"core",
|
||||
"detect",
|
||||
"dir",
|
||||
"file",
|
||||
"filepath",
|
||||
"is",
|
||||
"is-absolute",
|
||||
"isabsolute",
|
||||
"normalize",
|
||||
"path",
|
||||
"path-absolute",
|
||||
"path-is-absolute",
|
||||
"paths",
|
||||
"polyfill",
|
||||
"relative",
|
||||
"resolve",
|
||||
"shim",
|
||||
"slash",
|
||||
"slashes",
|
||||
"uri",
|
||||
"url",
|
||||
"util",
|
||||
"utils"
|
||||
],
|
||||
"verb": {
|
||||
"run": true,
|
||||
"toc": false,
|
||||
"layout": "default",
|
||||
"tasks": [
|
||||
"readme"
|
||||
],
|
||||
"plugins": [
|
||||
"gulp-format-md"
|
||||
],
|
||||
"related": {
|
||||
"list": [
|
||||
"is-dotfile",
|
||||
"is-glob",
|
||||
"is-relative",
|
||||
"is-unc-path",
|
||||
"is-valid-glob"
|
||||
]
|
||||
},
|
||||
"reflinks": [
|
||||
"verb"
|
||||
],
|
||||
"lint": {
|
||||
"reflinks": true
|
||||
}
|
||||
}
|
||||
}
|
||||
21
node_modules/lookup-path/node_modules/is-relative/LICENSE
generated
vendored
Normal file
21
node_modules/lookup-path/node_modules/is-relative/LICENSE
generated
vendored
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2014, 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.
|
||||
54
node_modules/lookup-path/node_modules/is-relative/README.md
generated
vendored
Normal file
54
node_modules/lookup-path/node_modules/is-relative/README.md
generated
vendored
Normal file
|
|
@ -0,0 +1,54 @@
|
|||
# is-relative [](http://badge.fury.io/js/is-relative)
|
||||
|
||||
> Returns `true` if the path appears to be relative.
|
||||
|
||||
## Install
|
||||
|
||||
Install with [npm](https://www.npmjs.com/)
|
||||
|
||||
```sh
|
||||
$ npm i is-relative --save
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
||||
```js
|
||||
var isRelative = require('is-relative');
|
||||
isRelative('README.md');
|
||||
//=> true
|
||||
```
|
||||
|
||||
## Other projects
|
||||
|
||||
* [is-absolute](https://github.com/jonschlinkert/is-absolute): Return true if a file path is absolute.
|
||||
* [is-dotfile](https://github.com/jonschlinkert/is-dotfile): Return true if a file path is (or has) a dotfile.
|
||||
* [is-glob](https://github.com/jonschlinkert/is-glob): Returns `true` if the given string looks like a glob pattern.
|
||||
* [is-unc-path](https://github.com/jonschlinkert/is-unc-path): Returns true if a filepath is a windows UNC file path.
|
||||
|
||||
## Running tests
|
||||
|
||||
Install dev dependencies:
|
||||
|
||||
```sh
|
||||
$ 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/is-relative/issues/new)
|
||||
|
||||
## Author
|
||||
|
||||
**Jon Schlinkert**
|
||||
|
||||
+ [github/jonschlinkert](https://github.com/jonschlinkert)
|
||||
+ [twitter/jonschlinkert](http://twitter.com/jonschlinkert)
|
||||
|
||||
## License
|
||||
|
||||
Copyright © 2014-2015 [Jon Schlinkert](https://github.com/jonschlinkert)
|
||||
Released under the MIT license.
|
||||
|
||||
***
|
||||
|
||||
_This file was generated by [verb-cli](https://github.com/assemble/verb-cli) on July 11, 2015._
|
||||
11
node_modules/lookup-path/node_modules/is-relative/index.js
generated
vendored
Normal file
11
node_modules/lookup-path/node_modules/is-relative/index.js
generated
vendored
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
'use strict';
|
||||
|
||||
var isUncPath = require('is-unc-path');
|
||||
|
||||
module.exports = function isRelative(fp) {
|
||||
if (typeof fp !== 'string') {
|
||||
throw new TypeError('isRelative expects a string.');
|
||||
}
|
||||
// Windows UNC paths are always considered to be absolute.
|
||||
return !isUncPath(fp) && !/^([a-z]:)?[\\\/]/i.test(fp);
|
||||
};
|
||||
55
node_modules/lookup-path/node_modules/is-relative/package.json
generated
vendored
Normal file
55
node_modules/lookup-path/node_modules/is-relative/package.json
generated
vendored
Normal file
|
|
@ -0,0 +1,55 @@
|
|||
{
|
||||
"name": "is-relative",
|
||||
"description": "Returns `true` if the path appears to be relative.",
|
||||
"version": "0.2.1",
|
||||
"homepage": "https://github.com/jonschlinkert/is-relative",
|
||||
"author": "Jon Schlinkert (https://github.com/jonschlinkert)",
|
||||
"repository": "jonschlinkert/is-relative",
|
||||
"bugs": {
|
||||
"url": "https://github.com/jonschlinkert/is-relative/issues"
|
||||
},
|
||||
"license": "MIT",
|
||||
"main": "index.js",
|
||||
"files": [
|
||||
"index.js"
|
||||
],
|
||||
"engines": {
|
||||
"node": ">=0.10.0"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "mocha"
|
||||
},
|
||||
"dependencies": {
|
||||
"is-unc-path": "^0.1.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"mocha": "*"
|
||||
},
|
||||
"keywords": [
|
||||
"absolute",
|
||||
"check",
|
||||
"file",
|
||||
"filepath",
|
||||
"is",
|
||||
"normalize",
|
||||
"path",
|
||||
"path.relative",
|
||||
"relative",
|
||||
"resolve",
|
||||
"slash",
|
||||
"slashes",
|
||||
"uri",
|
||||
"url"
|
||||
],
|
||||
"verb": {
|
||||
"related": {
|
||||
"list": [
|
||||
"is-absolute",
|
||||
"is-relative",
|
||||
"is-dotfile",
|
||||
"is-glob",
|
||||
"is-unc-path"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
21
node_modules/lookup-path/node_modules/is-unc-path/LICENSE
generated
vendored
Normal file
21
node_modules/lookup-path/node_modules/is-unc-path/LICENSE
generated
vendored
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2015-2016, 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.
|
||||
193
node_modules/lookup-path/node_modules/is-unc-path/README.md
generated
vendored
Normal file
193
node_modules/lookup-path/node_modules/is-unc-path/README.md
generated
vendored
Normal file
|
|
@ -0,0 +1,193 @@
|
|||
# is-unc-path [](https://www.npmjs.com/package/is-unc-path) [](https://npmjs.org/package/is-unc-path) [](https://npmjs.org/package/is-unc-path) [](https://travis-ci.org/jonschlinkert/is-unc-path)
|
||||
|
||||
> Returns true if a filepath is a windows UNC file path.
|
||||
|
||||
## Install
|
||||
|
||||
Install with [npm](https://www.npmjs.com/):
|
||||
|
||||
```sh
|
||||
$ npm install --save is-unc-path
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
||||
```js
|
||||
var isUncPath = require('is-unc-path');
|
||||
```
|
||||
|
||||
**true**
|
||||
|
||||
Returns true for windows UNC paths:
|
||||
|
||||
```js
|
||||
isUncPath('\\/foo/bar');
|
||||
isUncPath('\\\\foo/bar');
|
||||
isUncPath('\\\\foo\\admin
|
||||
|
||||
**false**
|
||||
|
||||
Returns false for non-UNC paths:
|
||||
|
||||
```js
|
||||
isUncPath('/foo/bar');
|
||||
isUncPath('/');
|
||||
isUncPath('/foo');
|
||||
isUncPath('/foo/');
|
||||
isUncPath('c:');
|
||||
isUncPath('c:.');
|
||||
isUncPath('c:./');
|
||||
isUncPath('c:./file');
|
||||
isUncPath('c:/');
|
||||
isUncPath('c:/file');
|
||||
```
|
||||
|
||||
**Customization**
|
||||
|
||||
Use `.source` to use the regex as a component of another regex:
|
||||
|
||||
```js
|
||||
var myRegex = new RegExp(isUncPath.source + 'foo');
|
||||
```
|
||||
|
||||
**[Rules for UNC paths](http://resources.esri.com/help/9.3/ArcGISDesktop/com/Gp_ToolRef/sharing_tools_and_toolboxes/pathnames_explained_colon_absolute_relative_unc_and_url.htm)**
|
||||
|
||||
* The computer name is always preceded by a double backward-slash (`\\`).
|
||||
* UNC paths cannot contain a drive letter (such as `D:`)
|
||||
|
||||
## About
|
||||
|
||||
### Related projects
|
||||
|
||||
* [dirname-regex](https://www.npmjs.com/package/dirname-regex): Regular expression for matching the directory part of a file path. | [homepage](https://github.com/regexps/dirname-regex "Regular expression for matching the directory part of a file path.")
|
||||
* [dotdir-regex](https://www.npmjs.com/package/dotdir-regex): Regex for matching dot-directories, like `.git/` | [homepage](https://github.com/regexps/dotdir-regex "Regex for matching dot-directories, like `.git/`")
|
||||
* [dotfile-regex](https://www.npmjs.com/package/dotfile-regex): Regular expresson for matching dotfiles. | [homepage](https://github.com/regexps/dotfile-regex "Regular expresson for matching dotfiles.")
|
||||
* [is-glob](https://www.npmjs.com/package/is-glob): Returns `true` if the given string looks like a glob pattern or an extglob pattern… [more](https://github.com/jonschlinkert/is-glob) | [homepage](https://github.com/jonschlinkert/is-glob "Returns `true` if the given string looks like a glob pattern or an extglob pattern. This makes it easy to create code that only uses external modules like node-glob when necessary, resulting in much faster code execution and initialization time, and a bet")
|
||||
* [is-unc-path](https://www.npmjs.com/package/is-unc-path): Returns true if a filepath is a windows UNC file path. | [homepage](https://github.com/jonschlinkert/is-unc-path "Returns true if a filepath is a windows UNC file path.")
|
||||
* [path-regex](https://www.npmjs.com/package/path-regex): Regular expression for matching the parts of a file path. | [homepage](https://github.com/regexps/path-regex "Regular expression for matching the parts of a file path.")
|
||||
* [unc-path-regex](https://www.npmjs.com/package/unc-path-regex): Regular expression for testing if a file path is a windows UNC file path. Can… [more](https://github.com/regexhq/unc-path-regex) | [homepage](https://github.com/regexhq/unc-path-regex "Regular expression for testing if a file path is a windows UNC file path. Can also be used as a component of another regexp via the `.source` property.")
|
||||
|
||||
### Contributing
|
||||
|
||||
Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new).
|
||||
|
||||
### Building docs
|
||||
|
||||
_(This document was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme) (a [verb](https://github.com/verbose/verb) generator), please don't edit the readme directly. Any changes to the readme must be made in [.verb.md](.verb.md).)_
|
||||
|
||||
To generate the readme and API documentation with [verb](https://github.com/verbose/verb):
|
||||
|
||||
```sh
|
||||
$ npm install -g verb verb-generate-readme && verb
|
||||
```
|
||||
|
||||
### Running tests
|
||||
|
||||
Install dev dependencies:
|
||||
|
||||
```sh
|
||||
$ npm install -d && npm test
|
||||
```
|
||||
|
||||
### Author
|
||||
|
||||
**Jon Schlinkert**
|
||||
|
||||
* [github/jonschlinkert](https://github.com/jonschlinkert)
|
||||
* [twitter/jonschlinkert](http://twitter.com/jonschlinkert)
|
||||
|
||||
### License
|
||||
|
||||
Copyright © 2016, [Jon Schlinkert](https://github.com/jonschlinkert).
|
||||
Released under the [MIT license](https://github.com/jonschlinkert/is-unc-path/blob/master/LICENSE).
|
||||
|
||||
***
|
||||
|
||||
_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.2.0, on December 07, 2016._
|
||||
|
||||
);
|
||||
isUncPath('\\foo\admin$\system32');
|
||||
isUncPath('\\foo\temp');
|
||||
isUncPath('\\/foo/bar');
|
||||
isUncPath('\\\/foo/bar');
|
||||
|
||||
```
|
||||
**false**
|
||||
|
||||
Returns false for non-UNC paths:
|
||||
|
||||
```js
|
||||
isUncPath('/foo/bar');
|
||||
isUncPath('/');
|
||||
isUncPath('/foo');
|
||||
isUncPath('/foo/');
|
||||
isUncPath('c:');
|
||||
isUncPath('c:.');
|
||||
isUncPath('c:./');
|
||||
isUncPath('c:./file');
|
||||
isUncPath('c:/');
|
||||
isUncPath('c:/file');
|
||||
```
|
||||
|
||||
**Customization**
|
||||
|
||||
Use `.source` to use the regex as a component of another regex:
|
||||
|
||||
```js
|
||||
var myRegex = new RegExp(isUncPath.source + 'foo');
|
||||
```
|
||||
|
||||
**[Rules for UNC paths](http://resources.esri.com/help/9.3/ArcGISDesktop/com/Gp_ToolRef/sharing_tools_and_toolboxes/pathnames_explained_colon_absolute_relative_unc_and_url.htm)**
|
||||
|
||||
* The computer name is always preceded by a double backward-slash (`\\`).
|
||||
* UNC paths cannot contain a drive letter (such as `D:`)
|
||||
|
||||
## About
|
||||
|
||||
### Related projects
|
||||
|
||||
* [dirname-regex](https://www.npmjs.com/package/dirname-regex): Regular expression for matching the directory part of a file path. | [homepage](https://github.com/regexps/dirname-regex "Regular expression for matching the directory part of a file path.")
|
||||
* [dotdir-regex](https://www.npmjs.com/package/dotdir-regex): Regex for matching dot-directories, like `.git/` | [homepage](https://github.com/regexps/dotdir-regex "Regex for matching dot-directories, like `.git/`")
|
||||
* [dotfile-regex](https://www.npmjs.com/package/dotfile-regex): Regular expresson for matching dotfiles. | [homepage](https://github.com/regexps/dotfile-regex "Regular expresson for matching dotfiles.")
|
||||
* [is-glob](https://www.npmjs.com/package/is-glob): Returns `true` if the given string looks like a glob pattern or an extglob pattern… [more](https://github.com/jonschlinkert/is-glob) | [homepage](https://github.com/jonschlinkert/is-glob "Returns `true` if the given string looks like a glob pattern or an extglob pattern. This makes it easy to create code that only uses external modules like node-glob when necessary, resulting in much faster code execution and initialization time, and a bet")
|
||||
* [is-unc-path](https://www.npmjs.com/package/is-unc-path): Returns true if a filepath is a windows UNC file path. | [homepage](https://github.com/jonschlinkert/is-unc-path "Returns true if a filepath is a windows UNC file path.")
|
||||
* [path-regex](https://www.npmjs.com/package/path-regex): Regular expression for matching the parts of a file path. | [homepage](https://github.com/regexps/path-regex "Regular expression for matching the parts of a file path.")
|
||||
* [unc-path-regex](https://www.npmjs.com/package/unc-path-regex): Regular expression for testing if a file path is a windows UNC file path. Can… [more](https://github.com/regexhq/unc-path-regex) | [homepage](https://github.com/regexhq/unc-path-regex "Regular expression for testing if a file path is a windows UNC file path. Can also be used as a component of another regexp via the `.source` property.")
|
||||
|
||||
### Contributing
|
||||
|
||||
Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new).
|
||||
|
||||
### Building docs
|
||||
|
||||
_(This document was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme) (a [verb](https://github.com/verbose/verb) generator), please don't edit the readme directly. Any changes to the readme must be made in [.verb.md](.verb.md).)_
|
||||
|
||||
To generate the readme and API documentation with [verb](https://github.com/verbose/verb):
|
||||
|
||||
```sh
|
||||
$ npm install -g verb verb-generate-readme && verb
|
||||
```
|
||||
|
||||
### Running tests
|
||||
|
||||
Install dev dependencies:
|
||||
|
||||
```sh
|
||||
$ npm install -d && npm test
|
||||
```
|
||||
|
||||
### Author
|
||||
|
||||
**Jon Schlinkert**
|
||||
|
||||
* [github/jonschlinkert](https://github.com/jonschlinkert)
|
||||
* [twitter/jonschlinkert](http://twitter.com/jonschlinkert)
|
||||
|
||||
### License
|
||||
|
||||
Copyright © 2016, [Jon Schlinkert](https://github.com/jonschlinkert).
|
||||
Released under the [MIT license](https://github.com/jonschlinkert/is-unc-path/blob/master/LICENSE).
|
||||
|
||||
***
|
||||
|
||||
_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.2.0, on December 07, 2016._
|
||||
8
node_modules/lookup-path/node_modules/is-unc-path/index.js
generated
vendored
Normal file
8
node_modules/lookup-path/node_modules/is-unc-path/index.js
generated
vendored
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
'use strict';
|
||||
|
||||
var regex = require('unc-path-regex');
|
||||
|
||||
module.exports = function isUNC(fp) {
|
||||
if (typeof fp !== 'string') return false;
|
||||
return regex().test(fp);
|
||||
};
|
||||
73
node_modules/lookup-path/node_modules/is-unc-path/package.json
generated
vendored
Normal file
73
node_modules/lookup-path/node_modules/is-unc-path/package.json
generated
vendored
Normal file
|
|
@ -0,0 +1,73 @@
|
|||
{
|
||||
"name": "is-unc-path",
|
||||
"description": "Returns true if a filepath is a windows UNC file path.",
|
||||
"version": "0.1.2",
|
||||
"homepage": "https://github.com/jonschlinkert/is-unc-path",
|
||||
"author": "Jon Schlinkert (https://github.com/jonschlinkert)",
|
||||
"repository": "jonschlinkert/is-unc-path",
|
||||
"bugs": {
|
||||
"url": "https://github.com/jonschlinkert/is-unc-path/issues"
|
||||
},
|
||||
"license": "MIT",
|
||||
"files": [
|
||||
"index.js"
|
||||
],
|
||||
"main": "index.js",
|
||||
"engines": {
|
||||
"node": ">=0.10.0"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "mocha"
|
||||
},
|
||||
"dependencies": {
|
||||
"unc-path-regex": "^0.1.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"gulp-format-md": "^0.1.11",
|
||||
"mocha": "*"
|
||||
},
|
||||
"keywords": [
|
||||
"absolute",
|
||||
"expression",
|
||||
"file",
|
||||
"filepath",
|
||||
"is",
|
||||
"match",
|
||||
"matching",
|
||||
"path",
|
||||
"regex",
|
||||
"regexp",
|
||||
"regular",
|
||||
"unc",
|
||||
"win",
|
||||
"windows"
|
||||
],
|
||||
"verb": {
|
||||
"related": {
|
||||
"list": [
|
||||
"dirname-regex",
|
||||
"dotdir-regex",
|
||||
"dotfile-regex",
|
||||
"is-glob",
|
||||
"is-unc-path",
|
||||
"path-regex",
|
||||
"unc-path-regex"
|
||||
]
|
||||
},
|
||||
"toc": false,
|
||||
"layout": "default",
|
||||
"tasks": [
|
||||
"readme"
|
||||
],
|
||||
"plugins": [
|
||||
"gulp-format-md"
|
||||
],
|
||||
"lint": {
|
||||
"reflinks": true
|
||||
},
|
||||
"reflinks": [
|
||||
"verb",
|
||||
"verb-generate-readme"
|
||||
]
|
||||
}
|
||||
}
|
||||
21
node_modules/lookup-path/node_modules/is-windows/LICENSE
generated
vendored
Normal file
21
node_modules/lookup-path/node_modules/is-windows/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.
|
||||
22
node_modules/lookup-path/node_modules/is-windows/index.js
generated
vendored
Normal file
22
node_modules/lookup-path/node_modules/is-windows/index.js
generated
vendored
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
/*! is-windows v0.2.0 | MIT LICENSE (c) 2015 | https://github.com/jonschlinkert/is-windows */
|
||||
(function (root, factory) {
|
||||
if (typeof define === 'function' && define.amd) {
|
||||
// AMD
|
||||
define(factory);
|
||||
} else if (typeof exports === 'object') {
|
||||
// Node.js
|
||||
module.exports = factory;
|
||||
} else {
|
||||
// Browser
|
||||
root.isWindows = factory;
|
||||
}
|
||||
}(this, function () {
|
||||
'use strict';
|
||||
|
||||
return (function isWindows() {
|
||||
if (typeof process === 'undefined' || !process) {
|
||||
return false;
|
||||
}
|
||||
return process.platform === 'win32';
|
||||
}());
|
||||
}));
|
||||
63
node_modules/lookup-path/node_modules/is-windows/package.json
generated
vendored
Normal file
63
node_modules/lookup-path/node_modules/is-windows/package.json
generated
vendored
Normal file
|
|
@ -0,0 +1,63 @@
|
|||
{
|
||||
"name": "is-windows",
|
||||
"description": "Returns true if the platform is windwows.",
|
||||
"version": "0.2.0",
|
||||
"homepage": "https://github.com/jonschlinkert/is-windows",
|
||||
"author": "Jon Schlinkert (https://github.com/jonschlinkert)",
|
||||
"repository": "jonschlinkert/is-windows",
|
||||
"bugs": {
|
||||
"url": "https://github.com/jonschlinkert/is-windows/issues"
|
||||
},
|
||||
"license": "MIT",
|
||||
"files": [
|
||||
"index.js"
|
||||
],
|
||||
"main": "index.js",
|
||||
"engines": {
|
||||
"node": ">=0.10.0"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "mocha"
|
||||
},
|
||||
"devDependencies": {
|
||||
"gulp-format-md": "^0.1.9",
|
||||
"mocha": "*"
|
||||
},
|
||||
"keywords": [
|
||||
"check",
|
||||
"is",
|
||||
"is-windows",
|
||||
"nix",
|
||||
"platform",
|
||||
"process",
|
||||
"unix",
|
||||
"win",
|
||||
"win32",
|
||||
"windows"
|
||||
],
|
||||
"verb": {
|
||||
"toc": false,
|
||||
"layout": "default",
|
||||
"tasks": [
|
||||
"readme"
|
||||
],
|
||||
"plugins": [
|
||||
"gulp-format-md"
|
||||
],
|
||||
"related": {
|
||||
"list": [
|
||||
"is-absolute",
|
||||
"is-glob",
|
||||
"is-relative",
|
||||
"isobject",
|
||||
"window-size"
|
||||
]
|
||||
},
|
||||
"lint": {
|
||||
"reflinks": true
|
||||
},
|
||||
"reflinks": [
|
||||
"verb"
|
||||
]
|
||||
}
|
||||
}
|
||||
53
node_modules/lookup-path/package.json
generated
vendored
Normal file
53
node_modules/lookup-path/package.json
generated
vendored
Normal file
|
|
@ -0,0 +1,53 @@
|
|||
{
|
||||
"name": "lookup-path",
|
||||
"description": "Attempt to resolve the absolute filepath to a file and verify that it exists.",
|
||||
"version": "0.3.1",
|
||||
"homepage": "https://github.com/jonschlinkert/lookup-path",
|
||||
"author": "Jon Schlinkert (https://github.com/jonschlinkert)",
|
||||
"repository": "jonschlinkert/lookup-path",
|
||||
"bugs": {
|
||||
"url": "https://github.com/jonschlinkert/lookup-path/issues"
|
||||
},
|
||||
"license": "MIT",
|
||||
"files": [
|
||||
"index.js"
|
||||
],
|
||||
"main": "index.js",
|
||||
"engines": {
|
||||
"node": ">=0.10.0"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "mocha"
|
||||
},
|
||||
"dependencies": {
|
||||
"debug": "^2.2.0",
|
||||
"is-absolute": "^0.2.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"mocha": "*",
|
||||
"should": "*"
|
||||
},
|
||||
"keywords": [
|
||||
"absolute",
|
||||
"current",
|
||||
"cwd",
|
||||
"directory",
|
||||
"file",
|
||||
"filepath",
|
||||
"find",
|
||||
"join",
|
||||
"lookup",
|
||||
"path",
|
||||
"relative",
|
||||
"resolve",
|
||||
"working"
|
||||
],
|
||||
"verb": {
|
||||
"layout": "default",
|
||||
"plugins": ["gulp-format-md"],
|
||||
"related": {
|
||||
"highlight": "is-absolute",
|
||||
"list": ["is-absolute", "is-relative", "is-windows"]
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue