Coco, the whimsical debug output package
npm install chroma-console
import { Coco } from 'chroma-console';
(...)
Coco.log('testing debug output');
`
!alt text
Big colorful buffers incase you need a visual blurb somewhere...
`
import { Coco } from 'chroma-console';
(...)
Coco.start();
Coco.end();
`
!alt text
PS, because Mac terminals don't include working with TrueColor, the output will be a bit different
!alt text
$3
If you just want to set the text to a color, use these helpers. The next time CoCo outputs a 'log', it will use the default color.
`
Coco.red('RED TEXT');
Coco.orange('ORANGE TEXT');
Coco.yellow('YELLOW TEXT');
Coco.green('GREEN TEXT');
Coco.blue('BLUE TEXT');
Coco.purple('PURPLE TEXT');
Coco.white('WHITE TEXT');
`
If you don't like the rainbow, you can set the color to something else!
`
Coco.setColor('oldmovie');
Coco.setColor('vaporwave');
Coco.setColor('purplehaze');
Coco.setColor('firewood');
`
$3
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
$3
- typescript types
- research a better way to global import, instead of importing on every script
`
``