convert-css-color-name-to-hex

Convert CSS color names to hex

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
convert-css-color-name-to-hex
4110.1.17 years ago7 years agoMinified + gzip package size for convert-css-color-name-to-hex in KB

Readme

convert-css-color-name-to-hex
NPM version Build Status Coverage Status
Code Climate Dependencies DevDependencies
Convert CSS color names to hex

Install

npm install --save convert-css-color-name-to-hex

Usage

ES2015

import convertCssColorNameToHex from 'convert-css-color-name-to-hex';

convertCssColorNameToHex('batman');
// => 'batman'

convertCssColorNameToHex('aliceblue');
// => '#f0f8ff'

ES5

var convertCssColorNameToHex = require('convert-css-color-name-to-hex');

convertCssColorNameToHex('batman');
// => 'batman'

convertCssColorNameToHex('aliceblue');
// => '#f0f8ff'

LICENSE

MIT © Dustin Specker