normalize-color

0.1.0 • Public • Published

normalize-color Build Status

Normalize colors for use in terminals

Install

$ npm install --save normalize-color

Usage

const normalizeColor = require('normalize-color');
 
normalizeColor({r: 128, g: 0, b: 0});
//=> 'red'

API

normalizeColor(input)

input

Type: object

{r: 128, g: 0 , b: 256}

License

MIT © Nikhil Srivastava

Package Sidebar

Install

npm i normalize-color

Weekly Downloads

4

Version

0.1.0

License

MIT

Last publish

Collaborators

  • niksrc