Rainbow font, with one import. No configuration needed, just works for terminal or Google Chrome.
import { Coco } from 'chroma-console';
(...)
Coco.log('testing debug output');
Big colorful buffers incase you need a visual blurb somewhere...
import { Coco } from 'chroma-console';
(...)
Coco.start();
Coco.end();
Uses π gradient-string
Please note if you want more options, please check out π Chalk,π Chalk Animation, orπcolorfy
NPM Package Link - https://www.npmjs.com/package/chroma-console
- typescript types
- if you set the color wrong, error out
- different colors (red, orange, yellow, etc) / unit tests for this
- bool flag helper