color-cod

Color code identical strings with the same color.

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
color-cod
0.1.07 years ago8 years agoMinified + gzip package size for color-cod in KB

Readme

color-cod

Color code identical strings with the same color.

Install

npm i -S color-cod

Usage

const colorCod = require('color-cod')()

console.log(colorCod('foo'))
console.log(colorCod('bar'))
console.log(colorCod('foo'))

E.g.

foo <- blue
bar <- yellow
foo <- blue

Global color coding.
import colorCod from 'color-cod'
console.log(colorCod('foo'))

License

MIT