css-color-names

1.0.1 • Public • Published

css-color-names

A JSON Object of css color names mapped to their hex value

Usage

var csscolors = require('css-color-names');
console.dir(csscolors);

yields

{
  "aqua": "#00ffff",
  "aliceblue": "#f0f8ff",
  "antiquewhite": "#faebd7",
  "black": "#000000",
  "blue": "#0000ff",
  ...
}

How was this list generated?

In the Makefile you'll see a line like this:

./getcolors.sh | ./stringify.js > $(FILE)

The first command scrapes a site for the list, and outputs the results separated by newlines. The second command creates the JSON object and outputs it to stdout, which then gets redirected into css-color-names.json

Installation

npm install css-color-names

License

MIT

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.1
    248,295
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.1
    248,295
  • 1.0.0
    23
  • 0.0.4
    3,242,525
  • 0.0.3
    49,735
  • 0.0.2
    1,841
  • 0.0.1
    46,312
  • 0.0.0
    14

Package Sidebar

Install

npm i css-color-names

Weekly Downloads

3,588,745

Version

1.0.1

License

MIT

Unpacked Size

6.4 kB

Total Files

4

Last publish

Collaborators

  • bahamas10