first commit
This commit is contained in:
21
build/node_modules/is-css-color-hex/LICENSE.md
generated
vendored
Normal file
21
build/node_modules/is-css-color-hex/LICENSE.md
generated
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2015 Dustin Specker
|
||||
|
||||
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.
|
||||
79
build/node_modules/is-css-color-hex/README.md
generated
vendored
Normal file
79
build/node_modules/is-css-color-hex/README.md
generated
vendored
Normal file
@@ -0,0 +1,79 @@
|
||||
# is-css-color-hex
|
||||
[](https://badge.fury.io/js/is-css-color-hex) [](https://travis-ci.org/dustinspecker/is-css-color-hex) [](https://coveralls.io/r/dustinspecker/is-css-color-hex?branch=master)
|
||||
|
||||
[](https://codeclimate.com/github/dustinspecker/is-css-color-hex) [](https://david-dm.org/dustinspecker/is-css-color-hex/#info=dependencies&view=table) [](https://david-dm.org/dustinspecker/is-css-color-hex/#info=devDependencies&view=table)
|
||||
|
||||
> Determine if a string is a valid CSS color hex
|
||||
|
||||
## Install
|
||||
```
|
||||
npm install --save is-css-color-hex
|
||||
```
|
||||
|
||||
## Usage
|
||||
### ES2015
|
||||
```javascript
|
||||
import isCSSColorHex from 'is-css-color-hex';
|
||||
|
||||
isCSSColorHex(1);
|
||||
// => false
|
||||
|
||||
isCSSColorHex('0aC');
|
||||
// => false
|
||||
|
||||
isCSSColorHex('0aCf');
|
||||
// => false
|
||||
|
||||
isCSSColorHex('01AbCd');
|
||||
// => false
|
||||
|
||||
isCSSColorHex('01AbCdff');
|
||||
// => false
|
||||
|
||||
isCSSColorHex('#0aC');
|
||||
// => true
|
||||
|
||||
isCSSColorHex('#0aCf');
|
||||
// => true
|
||||
|
||||
isCSSColorHex('#01AbCd');
|
||||
// => true
|
||||
|
||||
isCSSColorHex('#01AbCdfF');
|
||||
// => true
|
||||
```
|
||||
|
||||
### ES5
|
||||
```javascript
|
||||
var isCSSColorHex = require('is-css-color-hex');
|
||||
|
||||
isCSSColorHex(1);
|
||||
// => false
|
||||
|
||||
isCSSColorHex('0aC');
|
||||
// => false
|
||||
|
||||
isCSSColorHex('0aCf');
|
||||
// => false
|
||||
|
||||
isCSSColorHex('01AbCd');
|
||||
// => false
|
||||
|
||||
isCSSColorHex('01AbCdff');
|
||||
// => false
|
||||
|
||||
isCSSColorHex('#0aC');
|
||||
// => true
|
||||
|
||||
isCSSColorHex('#0aCf');
|
||||
// => true
|
||||
|
||||
isCSSColorHex('#01AbCd');
|
||||
// => true
|
||||
|
||||
isCSSColorHex('#01AbCdfF');
|
||||
// => true
|
||||
```
|
||||
|
||||
## LICENSE
|
||||
MIT © [Dustin Specker](https://github.com/dustinspecker)
|
||||
17
build/node_modules/is-css-color-hex/lib/index.js
generated
vendored
Normal file
17
build/node_modules/is-css-color-hex/lib/index.js
generated
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
'use strict';
|
||||
|
||||
/**
|
||||
* Determine if a value is a valid CSS color hex
|
||||
* @param {String} value - a string to determine if valid CSS color hex
|
||||
* @throws {Error} - if value is not a String
|
||||
* @return {Boolean} - is string a valid CSS color hex?
|
||||
*/
|
||||
|
||||
module.exports = function (value) {
|
||||
if (typeof value !== 'string') {
|
||||
throw new Error('Expected value to be a String');
|
||||
}
|
||||
|
||||
return (/^#([0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/.test(value)
|
||||
);
|
||||
};
|
||||
74
build/node_modules/is-css-color-hex/package.json
generated
vendored
Normal file
74
build/node_modules/is-css-color-hex/package.json
generated
vendored
Normal file
@@ -0,0 +1,74 @@
|
||||
{
|
||||
"_from": "is-css-color-hex@^0.2.0",
|
||||
"_id": "is-css-color-hex@0.2.0",
|
||||
"_inBundle": false,
|
||||
"_integrity": "sha1-NQ2Wu87JbfxyG8S6yzDpVhZ99h0=",
|
||||
"_location": "/is-css-color-hex",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"type": "range",
|
||||
"registry": true,
|
||||
"raw": "is-css-color-hex@^0.2.0",
|
||||
"name": "is-css-color-hex",
|
||||
"escapedName": "is-css-color-hex",
|
||||
"rawSpec": "^0.2.0",
|
||||
"saveSpec": null,
|
||||
"fetchSpec": "^0.2.0"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/pwa-manifest"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/is-css-color-hex/-/is-css-color-hex-0.2.0.tgz",
|
||||
"_shasum": "350d96bbcec96dfc721bc4bacb30e956167df61d",
|
||||
"_spec": "is-css-color-hex@^0.2.0",
|
||||
"_where": "/Users/asciidisco/Desktop/asciidisco.com/build/node_modules/pwa-manifest",
|
||||
"author": {
|
||||
"name": "Dustin Specker",
|
||||
"email": "DustinSpecker@DustinSpecker.com",
|
||||
"url": "https://github.com/dustinspecker"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/dustinspecker/is-css-color-hex/issues"
|
||||
},
|
||||
"bundleDependencies": false,
|
||||
"dependencies": {},
|
||||
"deprecated": false,
|
||||
"description": "Determine if a string is a valid CSS color hex",
|
||||
"devDependencies": {
|
||||
"ava": "^0.9.1",
|
||||
"babel-core": "^6.0.12",
|
||||
"babel-preset-es2015": "^6.0.12",
|
||||
"coveralls": "^2.11.2",
|
||||
"del": "^2.0.2",
|
||||
"eslint-config-dustinspecker": "^0.3.1",
|
||||
"eslint-path-formatter": "^0.1.1",
|
||||
"eslint-plugin-new-with-error": "^1.1.0",
|
||||
"eslint-plugin-no-use-extend-native": "^0.3.1",
|
||||
"gulp": "^3.9.0",
|
||||
"gulp-babel": "^6.0.0",
|
||||
"gulp-eslint": "^1.0.0",
|
||||
"gulp-istanbul": "^0.10.0",
|
||||
"nyc": "^5.3.0"
|
||||
},
|
||||
"files": [
|
||||
"lib"
|
||||
],
|
||||
"homepage": "https://github.com/dustinspecker/is-css-color-hex#readme",
|
||||
"keywords": [
|
||||
"css",
|
||||
"color",
|
||||
"hex"
|
||||
],
|
||||
"license": "MIT",
|
||||
"main": "lib/index.js",
|
||||
"name": "is-css-color-hex",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/dustinspecker/is-css-color-hex.git"
|
||||
},
|
||||
"scripts": {
|
||||
"coveralls": "nyc report --reporter=text-lcov | coveralls",
|
||||
"test": "gulp build; nyc ava --require babel-core/register"
|
||||
},
|
||||
"version": "0.2.0"
|
||||
}
|
||||
Reference in New Issue
Block a user