@golfed/color
v1.0.1
Published
The smallest color library in the world (possibly)
Downloads
2
Readme
@golfed/color
Possibly the tiniest color library ever. 42 styles in barely 146 bytes of minified, gzipped, golfed, no dependency code.
import color from '@golfed/color';
console.log(color(`
Hello, world!
{r}This is red!
{g}This is green!
{b}This is blue!
{/}Reset!
`.trim()))
Supported styles
k
: blackr
: redg
: greeny
: yellowb
: bluem
: magentac
: cyanw
: whitekb
: background blackrb
: background redgb
: background greenyb
: background yellowbb
: background bluemb
: background magentacb
: background cyanwb
: background whiteki
: intense blackri
: intense redgi
: intense greenyi
: intense yellowbi
: intense bluemi
: intense magentaci
: intense cyanwi
: intense whitekbi
: intense background blackrbi
: intense background redgbi
: intense background greenybi
: intense background yellowbbi
: intense background bluembi
: intense background magentacbi
: intense background cyanwbi
: intense background white/
: reset*
: bold_
: italic#
: dim=
: underline!
: blink^
: inverse-
: hidden~
: strikethrough