Package Exports
- color-cod
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (color-cod) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
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'))