API reference
roundel/yoctocolors
Every export of roundel/yoctocolors, with its signature and doc comment: reset, bold, dim, italic, underline, underlineDouble and 56 more, plus 1 type.
import value from 'roundel/yoctocolors';
import { reset, bold, dim, … } from 'roundel/yoctocolors';Constants
bgBlack
const bgBlack: Format;bgBlue
const bgBlue: Format;bgBlueBright
const bgBlueBright: Format;bgCyan
const bgCyan: Format;bgCyanBright
const bgCyanBright: Format;bgGray
const bgGray: Format;bgGreen
const bgGreen: Format;bgGreenBright
const bgGreenBright: Format;bgMagenta
const bgMagenta: Format;bgMagentaBright
const bgMagentaBright: Format;bgRed
const bgRed: Format;bgRedBright
const bgRedBright: Format;bgWhite
const bgWhite: Format;bgWhiteBright
const bgWhiteBright: Format;bgYellow
const bgYellow: Format;bgYellowBright
const bgYellowBright: Format;black
const black: Format;blue
const blue: Format;blueBright
const blueBright: Format;bold
const bold: Format;cyan
const cyan: Format;cyanBright
const cyanBright: Format;dim
const dim: Format;gray
const gray: Format;green
const green: Format;greenBright
const greenBright: Format;hidden
const hidden: Format;inverse
const inverse: Format;italic
const italic: Format;magenta
const magenta: Format;magentaBright
const magentaBright: Format;overline
const overline: Format;red
const red: Format;redBright
const redBright: Format;reset
const reset: Format;strikethrough
const strikethrough: Format;underline
const underline: Format;underlineBlack
const underlineBlack: Format;underlineBlue
const underlineBlue: Format;underlineBlueBright
const underlineBlueBright: Format;underlineCurly
const underlineCurly: Format;underlineCyan
const underlineCyan: Format;underlineCyanBright
const underlineCyanBright: Format;underlineDashed
const underlineDashed: Format;underlineDotted
const underlineDotted: Format;underlineDouble
const underlineDouble: Format;underlineGray
const underlineGray: Format;underlineGreen
const underlineGreen: Format;underlineGreenBright
const underlineGreenBright: Format;underlineMagenta
const underlineMagenta: Format;underlineMagentaBright
const underlineMagentaBright: Format;underlineRed
const underlineRed: Format;underlineRedBright
const underlineRedBright: Format;underlineWhite
const underlineWhite: Format;underlineWhiteBright
const underlineWhiteBright: Format;underlineYellow
const underlineYellow: Format;underlineYellowBright
const underlineYellowBright: Format;white
const white: Format;whiteBright
const whiteBright: Format;yellow
const yellow: Format;yellowBright
const yellowBright: Format;Namespaces
default
The module's own namespace: every export on this page, as one object.
export * as default from './yoctocolors.js';Types
Format
One style: the text between an open and a close code.
type Format = (string: string) => string;