Chalk( text: TemplateStringsArray , ... placeholders: unknown [] ) : string
Parameters
Rest
... placeholders: unknown []
Returns string
Defined in node_modules/chalk/index.d.ts:148
Chalk( ... text: unknown [] ) : string
Returns string
Defined in node_modules/chalk/index.d.ts:150
Properties
Instance
Defined in node_modules/chalk/index.d.ts:157
Readonly
bg Black
Defined in node_modules/chalk/index.d.ts:369
Readonly
bg Black Bright
Defined in node_modules/chalk/index.d.ts:388
Readonly
bg Blue
Defined in node_modules/chalk/index.d.ts:373
Readonly
bg Blue Bright
Defined in node_modules/chalk/index.d.ts:392
Readonly
bg Cyan
Defined in node_modules/chalk/index.d.ts:375
Readonly
bg Cyan Bright
Defined in node_modules/chalk/index.d.ts:394
Readonly
bg Gray
Defined in node_modules/chalk/index.d.ts:381
Readonly
bg Green
Defined in node_modules/chalk/index.d.ts:371
Readonly
bg Green Bright
Defined in node_modules/chalk/index.d.ts:390
Readonly
bg Grey
Defined in node_modules/chalk/index.d.ts:386
Readonly
bg Magenta
Defined in node_modules/chalk/index.d.ts:374
Readonly
bg Magenta Bright
Defined in node_modules/chalk/index.d.ts:393
Readonly
bg Red
Defined in node_modules/chalk/index.d.ts:370
Readonly
bg Red Bright
Defined in node_modules/chalk/index.d.ts:389
Readonly
bg White
Defined in node_modules/chalk/index.d.ts:376
Readonly
bg White Bright
Defined in node_modules/chalk/index.d.ts:395
Readonly
bg Yellow
Defined in node_modules/chalk/index.d.ts:372
Readonly
bg Yellow Bright
Defined in node_modules/chalk/index.d.ts:391
Readonly
black
Defined in node_modules/chalk/index.d.ts:341
Readonly
black Bright
Defined in node_modules/chalk/index.d.ts:360
Readonly
blue
Defined in node_modules/chalk/index.d.ts:345
Readonly
blue Bright
Defined in node_modules/chalk/index.d.ts:364
Readonly
bold
Defined in node_modules/chalk/index.d.ts:303
Readonly
cyan
Defined in node_modules/chalk/index.d.ts:347
Readonly
cyan Bright
Defined in node_modules/chalk/index.d.ts:366
Readonly
dim
Defined in node_modules/chalk/index.d.ts:308
Readonly
gray
Defined in node_modules/chalk/index.d.ts:353
Readonly
green
Defined in node_modules/chalk/index.d.ts:343
Readonly
green Bright
Defined in node_modules/chalk/index.d.ts:362
Readonly
grey
Defined in node_modules/chalk/index.d.ts:358
Readonly
hidden
Defined in node_modules/chalk/index.d.ts:328
Readonly
inverse
Defined in node_modules/chalk/index.d.ts:323
Readonly
italic
Defined in node_modules/chalk/index.d.ts:313
level
Defined in node_modules/chalk/index.d.ts:170
Readonly
magenta
Defined in node_modules/chalk/index.d.ts:346
Readonly
magenta Bright
Defined in node_modules/chalk/index.d.ts:365
Readonly
red
Defined in node_modules/chalk/index.d.ts:342
Readonly
red Bright
Defined in node_modules/chalk/index.d.ts:361
Readonly
reset
Defined in node_modules/chalk/index.d.ts:298
Readonly
strikethrough
Defined in node_modules/chalk/index.d.ts:333
Readonly
underline
Defined in node_modules/chalk/index.d.ts:318
Readonly
visible
Defined in node_modules/chalk/index.d.ts:339
Readonly
white
Defined in node_modules/chalk/index.d.ts:348
Readonly
white Bright
Defined in node_modules/chalk/index.d.ts:367
Readonly
yellow
Defined in node_modules/chalk/index.d.ts:344
Readonly
yellow Bright
Defined in node_modules/chalk/index.d.ts:363
Methods
ansi
ansi( code: number ) : Chalk
Defined in node_modules/chalk/index.d.ts:226
ansi256
ansi256( index: number ) : Chalk
Defined in node_modules/chalk/index.d.ts:231
bg Ansi
bg Ansi( code: number ) : Chalk
Defined in node_modules/chalk/index.d.ts:288
bg Ansi256
bg Ansi256( index: number ) : Chalk
Defined in node_modules/chalk/index.d.ts:293
bg Hex
bg Hex( color: string ) : Chalk
Defined in node_modules/chalk/index.d.ts:245
bg Hsl
bg Hsl( hue: number , saturation: number , lightness: number ) : Chalk
Parameters
hue: number
saturation: number
lightness: number
Defined in node_modules/chalk/index.d.ts:269
bg Hsv
bg Hsv( hue: number , saturation: number , value: number ) : Chalk
Parameters
hue: number
saturation: number
value: number
Defined in node_modules/chalk/index.d.ts:274
bg Hwb
bg Hwb( hue: number , whiteness: number , blackness: number ) : Chalk
Parameters
hue: number
whiteness: number
blackness: number
Defined in node_modules/chalk/index.d.ts:279
bg Keyword
bg Keyword( color: string ) : Chalk
Defined in node_modules/chalk/index.d.ts:259
bg Rgb
bg Rgb( red: number , green: number , blue: number ) : Chalk
Parameters
red: number
green: number
blue: number
Defined in node_modules/chalk/index.d.ts:264
hex
hex( color: string ) : Chalk
Defined in node_modules/chalk/index.d.ts:184
hsl
hsl( hue: number , saturation: number , lightness: number ) : Chalk
Parameters
hue: number
saturation: number
lightness: number
Defined in node_modules/chalk/index.d.ts:208
hsv
hsv( hue: number , saturation: number , value: number ) : Chalk
Parameters
hue: number
saturation: number
value: number
Defined in node_modules/chalk/index.d.ts:213
hwb
hwb( hue: number , whiteness: number , blackness: number ) : Chalk
Parameters
hue: number
whiteness: number
blackness: number
Defined in node_modules/chalk/index.d.ts:218
keyword
keyword( color: string ) : Chalk
Defined in node_modules/chalk/index.d.ts:198
rgb
rgb( red: number , green: number , blue: number ) : Chalk
Parameters
red: number
green: number
blue: number
Defined in node_modules/chalk/index.d.ts:203
Use a template string.
Remarks
Template literals are unsupported for nested calls (see issue #341)
Example
Example