first commit
This commit is contained in:
10
build/node_modules/is-url-superb/index.js
generated
vendored
Normal file
10
build/node_modules/is-url-superb/index.js
generated
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
'use strict';
|
||||
var urlRegex = require('url-regex')({exact: true});
|
||||
|
||||
module.exports = function (url) {
|
||||
if (typeof url !== 'string') {
|
||||
throw new TypeError('Expected a string');
|
||||
}
|
||||
|
||||
return urlRegex.test(url.trim());
|
||||
};
|
||||
21
build/node_modules/is-url-superb/license
generated
vendored
Normal file
21
build/node_modules/is-url-superb/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-url-superb/package.json
generated
vendored
Normal file
67
build/node_modules/is-url-superb/package.json
generated
vendored
Normal file
@@ -0,0 +1,67 @@
|
||||
{
|
||||
"_from": "is-url-superb@^2.0.0",
|
||||
"_id": "is-url-superb@2.0.0",
|
||||
"_inBundle": false,
|
||||
"_integrity": "sha1-tyihjPaS5NFtprlMdAioEdsNBJI=",
|
||||
"_location": "/is-url-superb",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"type": "range",
|
||||
"registry": true,
|
||||
"raw": "is-url-superb@^2.0.0",
|
||||
"name": "is-url-superb",
|
||||
"escapedName": "is-url-superb",
|
||||
"rawSpec": "^2.0.0",
|
||||
"saveSpec": null,
|
||||
"fetchSpec": "^2.0.0"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/pwa-manifest"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/is-url-superb/-/is-url-superb-2.0.0.tgz",
|
||||
"_shasum": "b728a18cf692e4d16da6b94c7408a811db0d0492",
|
||||
"_spec": "is-url-superb@^2.0.0",
|
||||
"_where": "/Users/asciidisco/Desktop/asciidisco.com/build/node_modules/pwa-manifest",
|
||||
"author": {
|
||||
"name": "Sindre Sorhus",
|
||||
"email": "sindresorhus@gmail.com",
|
||||
"url": "http://sindresorhus.com"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/sindresorhus/is-url-superb/issues"
|
||||
},
|
||||
"bundleDependencies": false,
|
||||
"dependencies": {
|
||||
"url-regex": "^3.0.0"
|
||||
},
|
||||
"deprecated": false,
|
||||
"description": "Check if a string is an URL",
|
||||
"devDependencies": {
|
||||
"ava": "0.0.4"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=0.10.0"
|
||||
},
|
||||
"files": [
|
||||
"index.js"
|
||||
],
|
||||
"homepage": "https://github.com/sindresorhus/is-url-superb#readme",
|
||||
"keywords": [
|
||||
"url",
|
||||
"uri",
|
||||
"string",
|
||||
"validate",
|
||||
"check",
|
||||
"is"
|
||||
],
|
||||
"license": "MIT",
|
||||
"name": "is-url-superb",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/sindresorhus/is-url-superb.git"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "node test.js"
|
||||
},
|
||||
"version": "2.0.0"
|
||||
}
|
||||
33
build/node_modules/is-url-superb/readme.md
generated
vendored
Normal file
33
build/node_modules/is-url-superb/readme.md
generated
vendored
Normal file
@@ -0,0 +1,33 @@
|
||||
# is-url-superb [](https://travis-ci.org/sindresorhus/is-url-superb)
|
||||
|
||||
> Check if a string is an URL
|
||||
|
||||
Created because the [`is-url`](https://github.com/segmentio/is-url) module is too loose. This module depends on a much more comprehensive [regex](https://github.com/kevva/url-regex).
|
||||
|
||||
|
||||
## Install
|
||||
|
||||
```sh
|
||||
$ npm install --save is-url-superb
|
||||
```
|
||||
|
||||
|
||||
## Usage
|
||||
|
||||
```js
|
||||
var isUrl = require('is-url-superb');
|
||||
|
||||
isUrl('http://todomvc.com');
|
||||
//=> true
|
||||
|
||||
isUrl('//todomvc.com');
|
||||
//=> true
|
||||
|
||||
isUrl('unicorn');
|
||||
//=> false
|
||||
```
|
||||
|
||||
|
||||
## License
|
||||
|
||||
MIT © [Sindre Sorhus](http://sindresorhus.com)
|
||||
Reference in New Issue
Block a user