JSPM

convert-css-color-name-to-hex

0.1.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 665
  • Score
    100M100P100Q110604F
  • License MIT

Convert CSS color names to hex

Package Exports

  • convert-css-color-name-to-hex

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (convert-css-color-name-to-hex) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

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