normalize-color

Normalize colors for use in terminals

Usage no npm install needed!

<script type="module">
  import normalizeColor from 'https://cdn.skypack.dev/normalize-color';
</script>

README

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