🚀 Big News:Socket Has Acquired Secure Annex.Learn More →
Socket
Book a DemoSign in
Socket

css-color-names

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

css-color-names

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

latest
Source
npmnpm
Version
1.0.1
Version published
Weekly downloads
3M
2.7%
Maintainers
1
Weekly downloads
 
Created
Source

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

Keywords

css

FAQs

Package last updated on 19 Feb 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts