first commit
This commit is contained in:
21
build/node_modules/is-absolute/LICENSE
generated
vendored
Normal file
21
build/node_modules/is-absolute/LICENSE
generated
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2014-2015, Jon Schlinkert.Copyright (c) 2009-2015, 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.
|
||||
53
build/node_modules/is-absolute/README.md
generated
vendored
Normal file
53
build/node_modules/is-absolute/README.md
generated
vendored
Normal file
@@ -0,0 +1,53 @@
|
||||
# is-absolute [](http://badge.fury.io/js/is-absolute) [](https://travis-ci.org/jonschlinkert/is-absolute)
|
||||
|
||||
> Return true if a file path is absolute.
|
||||
|
||||
Based on the `isAbsolute` utility method in [express](https://github.com/visionmedia/express).
|
||||
|
||||
## Install with [npm](npmjs.org)
|
||||
|
||||
```bash
|
||||
npm i is-absolute --save
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
||||
```js
|
||||
var isAbsolute = require('is-absolute');
|
||||
console.log(isAbsolute('a/b/c.js'));
|
||||
//=> 'false';
|
||||
```
|
||||
|
||||
## 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/is-absolute/issues)
|
||||
|
||||
|
||||
## Other projects
|
||||
* [is-relative](https://github.com/jonschlinkert/is-relative): Returns `true` if the path appears to be relative.
|
||||
* [is-dotfile](https://github.com/regexps/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.
|
||||
* [cwd](https://github.com/jonschlinkert/cwd): Node.js util for easily getting the current working directory of a project based on package.json or the given path.
|
||||
* [git-config-path](https://github.com/jonschlinkert/git-config-path): Resolve the path to the user's global .gitconfig.
|
||||
|
||||
## Author
|
||||
|
||||
**Jon Schlinkert**
|
||||
|
||||
+ [github/jonschlinkert](https://github.com/jonschlinkert)
|
||||
+ [twitter/jonschlinkert](http://twitter.com/jonschlinkert)
|
||||
|
||||
## License
|
||||
Copyright (c) 2014-2015 Jon Schlinkert
|
||||
Released under the MIT license
|
||||
|
||||
***
|
||||
|
||||
_This file was generated by [verb-cli](https://github.com/assemble/verb-cli) on March 05, 2015._
|
||||
27
build/node_modules/is-absolute/index.js
generated
vendored
Normal file
27
build/node_modules/is-absolute/index.js
generated
vendored
Normal file
@@ -0,0 +1,27 @@
|
||||
/*!
|
||||
* is-absolute <https://github.com/jonschlinkert/is-absolute>
|
||||
*
|
||||
* Copyright (c) 2014-2015, Jon Schlinkert.
|
||||
* Licensed under the MIT License.
|
||||
*/
|
||||
|
||||
'use strict';
|
||||
|
||||
var isRelative = require('is-relative');
|
||||
|
||||
module.exports = function isAbsolute(filepath) {
|
||||
if ('/' === filepath[0]) {
|
||||
return true;
|
||||
}
|
||||
if (':' === filepath[1] && '\\' === filepath[2]) {
|
||||
return true;
|
||||
}
|
||||
// Microsoft Azure absolute filepath
|
||||
if ('\\\\' == filepath.substring(0, 2)) {
|
||||
return true;
|
||||
}
|
||||
if (!isRelative(filepath)) {
|
||||
return true;
|
||||
}
|
||||
};
|
||||
|
||||
81
build/node_modules/is-absolute/package.json
generated
vendored
Normal file
81
build/node_modules/is-absolute/package.json
generated
vendored
Normal file
@@ -0,0 +1,81 @@
|
||||
{
|
||||
"_args": [
|
||||
[
|
||||
"is-absolute@0.1.7",
|
||||
"/Users/asciidisco/Desktop/asciidisco.com/build"
|
||||
]
|
||||
],
|
||||
"_from": "is-absolute@0.1.7",
|
||||
"_id": "is-absolute@0.1.7",
|
||||
"_inBundle": false,
|
||||
"_integrity": "sha1-hHSREZ/MtftDYhfMc39/qtUPYD8=",
|
||||
"_location": "/is-absolute",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"type": "version",
|
||||
"registry": true,
|
||||
"raw": "is-absolute@0.1.7",
|
||||
"name": "is-absolute",
|
||||
"escapedName": "is-absolute",
|
||||
"rawSpec": "0.1.7",
|
||||
"saveSpec": null,
|
||||
"fetchSpec": "0.1.7"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/strip-dirs"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/is-absolute/-/is-absolute-0.1.7.tgz",
|
||||
"_spec": "0.1.7",
|
||||
"_where": "/Users/asciidisco/Desktop/asciidisco.com/build",
|
||||
"author": {
|
||||
"name": "Jon Schlinkert",
|
||||
"url": "https://github.com/jonschlinkert"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/jonschlinkert/is-absolute/issues"
|
||||
},
|
||||
"dependencies": {
|
||||
"is-relative": "^0.1.0"
|
||||
},
|
||||
"description": "Return true if a file path is absolute.",
|
||||
"devDependencies": {
|
||||
"mocha": "*"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=0.10.0"
|
||||
},
|
||||
"files": [
|
||||
"index.js"
|
||||
],
|
||||
"homepage": "https://github.com/jonschlinkert/is-absolute",
|
||||
"keywords": [
|
||||
"absolute",
|
||||
"check",
|
||||
"file",
|
||||
"filepath",
|
||||
"is",
|
||||
"normalize",
|
||||
"path",
|
||||
"path.relative",
|
||||
"relative",
|
||||
"resolve",
|
||||
"slash",
|
||||
"slashes",
|
||||
"uri",
|
||||
"url"
|
||||
],
|
||||
"license": {
|
||||
"type": "MIT",
|
||||
"url": "https://github.com/jonschlinkert/is-absolute/blob/master/LICENSE"
|
||||
},
|
||||
"main": "index.js",
|
||||
"name": "is-absolute",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git://github.com/jonschlinkert/is-absolute.git"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "mocha"
|
||||
},
|
||||
"version": "0.1.7"
|
||||
}
|
||||
Reference in New Issue
Block a user