JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 100
  • Score
    100M100P100Q75506F
  • License MIT

Color code identical strings with the same color.

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-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