Color Style Quiz For Chalk
Chalk Quiz Color Style is a color style quiz for chalk
npm install chalk-color-style-quiz
npm install chalk@4.1.1
var chalkcolorquiz = require('chalk-color-style-quiz');
chalkcolorquiz.completed();
Chalk Quiz Color Style comes with an easy to use color style quiz API
var chalkcolorquiz = require('chalk-color-style-quiz');
chalkcolorquiz.log(`
${chalkcolorquiz.blankdone()} Creating new html file done
`);
or this
var chalkcolorquiz = require('chalk-color-style-quiz');
chalkcolorquiz.log(`
${chalkcolorquiz.blankdone()}
${chalkcolorquiz.hex('#0f0')('Creating new html file done')}
`);
or this to install chalk
var chalk = require('chalk');
var chalkcolorquiz = require('chalk-color-style-quiz');
chalkcolorquiz.log(`
${chalkcolorquiz.blankdone()}
${chalk.hex('#0f0')('Creating new html file done')}
`);
Specifies the completed color for color support
Specifies the failed color for color support
Specifies the completed color for color support
Specifies the failed color for color support
Specifies the blank completed color for color support
Specifies the blank failed color for color support
Specifies the blank completed text color for color support
Specifies the blank failed text color for color support
Specifies the custom console.log for console of color support
-
bold
- Make the text bold. -
dim
- Make the text have lower opacity. -
underline
- Put a horizontal line below the text. -
inverse
- Invert background and foreground colors.
white
black
gray
red
blue
green
yellow
magenta
cyan
whitebright
-
blackbright
(alias:gray
,grey
) graybright
redbright
greenbright
bluebright
yellowbright
magentabright
cyanbright
bgwhite
bgblack
bggray
bgred
bgblue
bggreen
bgyellow
bgmagenta
bgcyan
bgwhitebright
-
bgblackbright
(alias:bggray
,bggrey
) bggraybright
bgredbright
bgbluebright
bggreenbright
bgyellowbright
bgmagentabright
bgcyanbright
Chalk Color Style supports hex and rgb colors
Examples:
chalkcolor.hex('#0000a5').bold('Hello world!')
chalkcolor.rgb(0, 0, 165).underline('Hello world!')
Background versions of these models are prefixed with bg
and the first level of the module capitalized (e.g. hex
for foreground colors and bghex
for background colors).
chalkcolor.bghex('#0000a5').bold('Hello world!')
chalkcolor.bgrgb(0, 0, 165).underline('Hello world!')
The following color models can be used: