colors
: { default
: any ; BackgroundColor
: BackgroundColor ; Color
: Color ; ForegroundColor
: ForegroundColor ; Instance
: default . Instance ; Level
: default . Level ; Modifiers
: Modifiers ; bgBlack
: default . Chalk ; bgBlackBright
: default . Chalk ; bgBlue
: default . Chalk ; bgBlueBright
: default . Chalk ; bgCyan
: default . Chalk ; bgCyanBright
: default . Chalk ; bgGray
: default . Chalk ; bgGreen
: default . Chalk ; bgGreenBright
: default . Chalk ; bgGrey
: default . Chalk ; bgMagenta
: default . Chalk ; bgMagentaBright
: default . Chalk ; bgRed
: default . Chalk ; bgRedBright
: default . Chalk ; bgWhite
: default . Chalk ; bgWhiteBright
: default . Chalk ; bgYellow
: default . Chalk ; bgYellowBright
: default . Chalk ; black
: default . Chalk ; blackBright
: default . Chalk ; blue
: default . Chalk ; blueBright
: default . Chalk ; bold
: default . Chalk ; cyan
: default . Chalk ; cyanBright
: default . Chalk ; dim
: default . Chalk ; gray
: default . Chalk ; green
: default . Chalk ; greenBright
: default . Chalk ; grey
: default . Chalk ; hidden
: default . Chalk ; inverse
: default . Chalk ; italic
: default . Chalk ; level
: default . Level ; magenta
: default . Chalk ; magentaBright
: default . Chalk ; red
: default . Chalk ; redBright
: default . Chalk ; reset
: default . Chalk ; stderr
: default . Chalk & { supportsColor
: false | default . ColorSupport ; } ; strikethrough
: default . Chalk ; supportsColor
: false | default . ColorSupport ; underline
: default . Chalk ; visible
: default . Chalk ; white
: default . Chalk ; whiteBright
: default . Chalk ; yellow
: default . Chalk ; yellowBright
: default . Chalk ; default
( text
: TemplateStringsArray ,
... placeholders
: unknown [] ) : string ; default
( ... text
: unknown [] ) : string ; ansi
( code
: number ) : default . Chalk ; ansi256
( index
: number ) : default . Chalk ; bgAnsi
( code
: number ) : default . Chalk ; bgAnsi256
( index
: number ) : default . Chalk ; bgHex
( color
: string ) : default . Chalk ; bgHsl
( hue
: number , saturation
: number , lightness
: number ) : default . Chalk ; bgHsv
( hue
: number , saturation
: number , value
: number ) : default . Chalk ; bgHwb
( hue
: number , whiteness
: number , blackness
: number ) : default . Chalk ; bgKeyword
( color
: string ) : default . Chalk ; bgRgb
( red
: number , green
: number , blue
: number ) : default . Chalk ; hex
( color
: string ) : default . Chalk ; hsl
( hue
: number , saturation
: number , lightness
: number ) : default . Chalk ; hsv
( hue
: number , saturation
: number , value
: number ) : default . Chalk ; hwb
( hue
: number , whiteness
: number , blackness
: number ) : default . Chalk ; keyword
( color
: string ) : default . Chalk ; rgb
( red
: number , green
: number , blue
: number ) : default . Chalk ; }
Type declaration
Background Color: BackgroundColor
Color: Color
Foreground Color: ForegroundColor
Modifiers: Modifiers
Readonly
bg Black Bright: default . Chalk
Readonly
bg Green Bright: default . Chalk
Readonly
bg Magenta Bright: default . Chalk
Readonly
bg White Bright: default . Chalk
Readonly
bg Yellow Bright: default . Chalk
Readonly
magenta Bright: default . Chalk
Readonly
strikethrough: default . Chalk
default: function
default( text: TemplateStringsArray , ... placeholders: unknown [] ) : string
Parameters
text: TemplateStringsArray
Rest
... placeholders: unknown []
Returns string
Defined in node_modules/.pnpm/chalk@4.1.2/node_modules/chalk/index.d.ts:148
default( ... text: unknown [] ) : string
Returns string
Defined in node_modules/.pnpm/chalk@4.1.2/node_modules/chalk/index.d.ts:150
ansi: function
ansi( code: number ) : default . Chalk
Defined in node_modules/.pnpm/chalk@4.1.2/node_modules/chalk/index.d.ts:226
ansi256: function
ansi256( index: number ) : default . Chalk
Defined in node_modules/.pnpm/chalk@4.1.2/node_modules/chalk/index.d.ts:231
bg Ansi: function
bg Ansi( code: number ) : default . Chalk
Defined in node_modules/.pnpm/chalk@4.1.2/node_modules/chalk/index.d.ts:288
bg Ansi256: function
bg Ansi256( index: number ) : default . Chalk
Defined in node_modules/.pnpm/chalk@4.1.2/node_modules/chalk/index.d.ts:293
bg Hex: function
bg Hex( color: string ) : default . Chalk
Defined in node_modules/.pnpm/chalk@4.1.2/node_modules/chalk/index.d.ts:245
bg Hsl: function
bg Hsl( hue: number , saturation: number , lightness: number ) : default . Chalk
Parameters
hue: number
saturation: number
lightness: number
Defined in node_modules/.pnpm/chalk@4.1.2/node_modules/chalk/index.d.ts:269
bg Hsv: function
bg Hsv( hue: number , saturation: number , value: number ) : default . Chalk
Parameters
hue: number
saturation: number
value: number
Defined in node_modules/.pnpm/chalk@4.1.2/node_modules/chalk/index.d.ts:274
bg Hwb: function
bg Hwb( hue: number , whiteness: number , blackness: number ) : default . Chalk
Parameters
hue: number
whiteness: number
blackness: number
Defined in node_modules/.pnpm/chalk@4.1.2/node_modules/chalk/index.d.ts:279
bg Keyword: function
bg Keyword( color: string ) : default . Chalk
Defined in node_modules/.pnpm/chalk@4.1.2/node_modules/chalk/index.d.ts:259
bg Rgb: function
bg Rgb( red: number , green: number , blue: number ) : default . Chalk
Parameters
red: number
green: number
blue: number
Defined in node_modules/.pnpm/chalk@4.1.2/node_modules/chalk/index.d.ts:264
hex: function
hex( color: string ) : default . Chalk
Defined in node_modules/.pnpm/chalk@4.1.2/node_modules/chalk/index.d.ts:184
hsl: function
hsl( hue: number , saturation: number , lightness: number ) : default . Chalk
Parameters
hue: number
saturation: number
lightness: number
Defined in node_modules/.pnpm/chalk@4.1.2/node_modules/chalk/index.d.ts:208
hsv: function
hsv( hue: number , saturation: number , value: number ) : default . Chalk
Parameters
hue: number
saturation: number
value: number
Defined in node_modules/.pnpm/chalk@4.1.2/node_modules/chalk/index.d.ts:213
hwb: function
hwb( hue: number , whiteness: number , blackness: number ) : default . Chalk
Parameters
hue: number
whiteness: number
blackness: number
Defined in node_modules/.pnpm/chalk@4.1.2/node_modules/chalk/index.d.ts:218
keyword: function
keyword( color: string ) : default . Chalk
Defined in node_modules/.pnpm/chalk@4.1.2/node_modules/chalk/index.d.ts:198
rgb: function
rgb( red: number , green: number , blue: number ) : default . Chalk
Parameters
red: number
green: number
blue: number
Defined in node_modules/.pnpm/chalk@4.1.2/node_modules/chalk/index.d.ts:203
Defined in node_modules/.pnpm/chalk@4.1.2/node_modules/chalk/index.d.ts:69
Defined in node_modules/.pnpm/chalk@4.1.2/node_modules/chalk/index.d.ts:405
Main Chalk object that allows to chain styles together. Call the last one as a method with a string argument. Order doesn't matter, and later styles take precedent in case of a conflict. This simply means that
chalk.red.yellow.green
is equivalent tochalk.green
.