first commit
This commit is contained in:
8
build/node_modules/is-absolute-url/index.js
generated
vendored
Normal file
8
build/node_modules/is-absolute-url/index.js
generated
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
'use strict';
|
||||
module.exports = function (url) {
|
||||
if (typeof url !== 'string') {
|
||||
throw new TypeError('Expected a string');
|
||||
}
|
||||
|
||||
return /^[a-z][a-z0-9+.-]*:/.test(url);
|
||||
};
|
||||
21
build/node_modules/is-absolute-url/license
generated
vendored
Normal file
21
build/node_modules/is-absolute-url/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.
|
||||
67
build/node_modules/is-absolute-url/package.json
generated
vendored
Normal file
67
build/node_modules/is-absolute-url/package.json
generated
vendored
Normal file
@@ -0,0 +1,67 @@
|
||||
{
|
||||
"_args": [
|
||||
[
|
||||
"is-absolute-url@2.1.0",
|
||||
"/Users/asciidisco/Desktop/asciidisco.com/build"
|
||||
]
|
||||
],
|
||||
"_from": "is-absolute-url@2.1.0",
|
||||
"_id": "is-absolute-url@2.1.0",
|
||||
"_inBundle": false,
|
||||
"_integrity": "sha1-UFMN+4T8yap9vnhS6Do3uTufKqY=",
|
||||
"_location": "/is-absolute-url",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"type": "version",
|
||||
"registry": true,
|
||||
"raw": "is-absolute-url@2.1.0",
|
||||
"name": "is-absolute-url",
|
||||
"escapedName": "is-absolute-url",
|
||||
"rawSpec": "2.1.0",
|
||||
"saveSpec": null,
|
||||
"fetchSpec": "2.1.0"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/postcss-normalize-url"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/is-absolute-url/-/is-absolute-url-2.1.0.tgz",
|
||||
"_spec": "2.1.0",
|
||||
"_where": "/Users/asciidisco/Desktop/asciidisco.com/build",
|
||||
"author": {
|
||||
"name": "Sindre Sorhus",
|
||||
"email": "sindresorhus@gmail.com",
|
||||
"url": "http://sindresorhus.com"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/sindresorhus/is-absolute-url/issues"
|
||||
},
|
||||
"description": "Check if an URL is absolute",
|
||||
"devDependencies": {
|
||||
"mocha": "*"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=0.10.0"
|
||||
},
|
||||
"files": [
|
||||
"index.js"
|
||||
],
|
||||
"homepage": "https://github.com/sindresorhus/is-absolute-url#readme",
|
||||
"keywords": [
|
||||
"url",
|
||||
"absolute",
|
||||
"relative",
|
||||
"uri",
|
||||
"is",
|
||||
"check"
|
||||
],
|
||||
"license": "MIT",
|
||||
"name": "is-absolute-url",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/sindresorhus/is-absolute-url.git"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "mocha"
|
||||
},
|
||||
"version": "2.1.0"
|
||||
}
|
||||
36
build/node_modules/is-absolute-url/readme.md
generated
vendored
Normal file
36
build/node_modules/is-absolute-url/readme.md
generated
vendored
Normal file
@@ -0,0 +1,36 @@
|
||||
# is-absolute-url [](https://travis-ci.org/sindresorhus/is-absolute-url)
|
||||
|
||||
> Check if an URL is absolute
|
||||
|
||||
|
||||
## Install
|
||||
|
||||
```sh
|
||||
$ npm install --save is-absolute-url
|
||||
```
|
||||
|
||||
|
||||
## Usage
|
||||
|
||||
```js
|
||||
var isAbsoluteUrl = require('is-absolute-url');
|
||||
|
||||
isAbsoluteUrl('http://sindresorhus.com/foo/bar');
|
||||
//=> true
|
||||
|
||||
isAbsoluteUrl('//sindresorhus.com');
|
||||
//=> false
|
||||
|
||||
isAbsoluteUrl('foo/bar');
|
||||
//=> false
|
||||
```
|
||||
|
||||
|
||||
## Related
|
||||
|
||||
See [is-relative-url](https://github.com/sindresorhus/is-relative-url) for the inverse.
|
||||
|
||||
|
||||
## License
|
||||
|
||||
MIT © [Sindre Sorhus](http://sindresorhus.com)
|
||||
Reference in New Issue
Block a user