mirror of
https://github.com/thangisme/notes.git
synced 2026-07-13 06:00:12 -04:00
Initial commit
This commit is contained in:
48
node_modules/css-color-names/README.md
generated
vendored
Normal file
48
node_modules/css-color-names/README.md
generated
vendored
Normal file
@@ -0,0 +1,48 @@
|
||||
css-color-names
|
||||
===============
|
||||
|
||||
A JSON Object of css color names mapped to their hex value
|
||||
|
||||
Usage
|
||||
-----
|
||||
|
||||
``` js
|
||||
var csscolors = require('css-color-names');
|
||||
console.dir(csscolors);
|
||||
```
|
||||
|
||||
yields
|
||||
|
||||
``` json
|
||||
{
|
||||
"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
|
||||
Reference in New Issue
Block a user