oq-color-name-decimal

1.0.0 • Public • Published

oq-color-name-decimal

A JSON with color names and it’s values.返回颜色名和对应十进制值的json数据

数据来源于[Based on http://dev.w3.org/csswg/css-color/#named-colors.](Based on http://dev.w3.org/csswg/css-color/#named-colors.)

INSTALL

$ npm install --save oq-color-name-decimal

USAGE

var colors = require('oq-color-name-decimal');
colors.red //[255,0,0]
colors.darkblue //[0, 0, 139]
colors.redss // undefined -->redss doesn't exist;

License

MIT

AUTHORS

This project belongs to OpenQuest---A open organization concentrates on reading excellent codes from npm.org and github.com and commenting them so that everyone can understand easily. You can check the index_comment.js to get the source comments. For more information, linking to https://github.com/OpenQuest.

Package Sidebar

Install

npm i oq-color-name-decimal

Weekly Downloads

4

Version

1.0.0

License

MIT

Last publish

Collaborators

  • lingshanjun