color-cod
v0.1.0
Published
Color code identical strings with the same color.
Downloads
614
Readme
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'))