1.0.40 β€’ Published 10 months ago

chroma-console v1.0.40

Weekly downloads
-
License
MIT
Repository
-
Last release
10 months ago

Chroma Console, aka 'Coco'

License: MIT

Rainbow font, with one import. No configuration needed, just works for terminal or Google Chrome.

alt text

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

Other Helpers

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');

Other Other

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

TODO -

  • typescript types
  • research a better way to global import, instead of importing on every script
1.0.40

10 months ago

1.0.39

10 months ago

1.0.38

10 months ago

1.0.37

10 months ago

1.0.36

10 months ago

1.0.33

11 months ago

1.0.35

10 months ago

1.0.34

11 months ago

1.0.32

1 year ago

1.0.31

1 year ago

1.0.29

1 year ago

1.0.28

1 year ago

1.0.30

1 year ago

1.0.27

2 years ago

1.0.26

2 years ago

1.0.25

2 years ago

1.0.24

2 years ago

1.0.23

2 years ago

1.0.22

2 years ago

1.0.21

2 years ago

1.0.20

2 years ago

1.0.19

2 years ago

1.0.18

2 years ago

1.0.17

2 years ago

1.0.16

2 years ago

1.0.15

2 years ago

1.0.14

2 years ago

1.0.13

2 years ago

1.0.12

2 years ago

1.0.11

2 years ago

1.0.10

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago