Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

convert-css-color-name-to-hex

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

convert-css-color-name-to-hex - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

18

lib/index.js
'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"

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc