convert-css-color-name-to-hex
Advanced tools
Comparing version 0.1.0 to 0.1.1
'use strict'; | ||
Object.defineProperty(exports, '__esModule', { | ||
value: true | ||
}); | ||
exports['default'] = convertCSSColorNameToHex; | ||
// istanbul ignore next | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } | ||
var _cssColorNames = require('css-color-names'); | ||
@@ -18,2 +11,4 @@ | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
/** | ||
@@ -25,4 +20,3 @@ * Convert a CSS color name to hex | ||
*/ | ||
function convertCSSColorNameToHex(name) { | ||
module.exports = function (name) { | ||
if (typeof name !== 'string') { | ||
@@ -32,5 +26,3 @@ throw new TypeError('Expected a string'); | ||
return (0, _isCssColorName2['default'])(name) ? _cssColorNames2['default'][name.toLowerCase()] : name; | ||
} | ||
module.exports = exports['default']; | ||
return (0, _isCssColorName2.default)(name) ? _cssColorNames2.default[name.toLowerCase()] : name; | ||
}; |
{ | ||
"name": "convert-css-color-name-to-hex", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "Convert CSS color names to hex", | ||
@@ -11,3 +11,9 @@ "main": "lib/index.js", | ||
"repository": "dustinspecker/convert-css-color-name-to-hex", | ||
"keywords": [], | ||
"keywords": [ | ||
"css", | ||
"color", | ||
"names", | ||
"hex", | ||
"convert" | ||
], | ||
"author": { | ||
@@ -23,7 +29,8 @@ "name": "Dustin Specker", | ||
"dependencies": { | ||
"css-color-names": "0.0.1", | ||
"css-color-names": "0.0.3", | ||
"is-css-color-name": "^0.1.1" | ||
}, | ||
"devDependencies": { | ||
"babel-core": "^5.8.23", | ||
"babel-core": "^6.0.12", | ||
"babel-preset-es2015": "^6.0.12", | ||
"chai": "^3.0.0", | ||
@@ -34,8 +41,9 @@ "coveralls": "^2.11.2", | ||
"eslint-path-formatter": "^0.1.1", | ||
"eslint-plugin-no-use-extend-native": "^0.1.4", | ||
"eslint-plugin-new-with-error": "^1.1.0", | ||
"eslint-plugin-no-use-extend-native": "^0.3.1", | ||
"gulp": "^3.9.0", | ||
"gulp-babel": "^5.1.0", | ||
"gulp-babel": "^6.0.0", | ||
"gulp-eslint": "^1.0.0", | ||
"gulp-istanbul": "^0.10.0", | ||
"gulp-jscs": "^2.0.0", | ||
"gulp-jscs": "^3.0.1", | ||
"gulp-jshint": "^1.11.0", | ||
@@ -42,0 +50,0 @@ "gulp-mocha": "^2.1.0" |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4796
16
17
+ Addedcss-color-names@0.0.3(transitive)
- Removedcss-color-names@0.0.1(transitive)
Updatedcss-color-names@0.0.3