roundel/picocolors
Every export of roundel/picocolors, with its signature and doc comment: createColors, isColorSupported, picocolors, module.exports, plus 2 types.
import picocolors from 'roundel/picocolors';
import { createColors, isColorSupported, module.exports } from 'roundel/picocolors';Functions
createColors
The styles, coloured or not. enabled defaults to {@link isColorSupported}.
function createColors(enabled?: boolean): Colors;| Parameter | Type |
|---|---|
enabled (optional) | boolean |
Returns Colors
Constants
default
The default export, declared as picocolors.
picocolors' module: the styles for this process, and createColors.
const picocolors: Colors & {
createColors: typeof createColors;
};isColorSupported
Whether picocolors would colour this process's output.
const isColorSupported: boolean;module.exports
picocolors' module: the styles for this process, and createColors.
const picocolors: Colors & {
createColors: typeof createColors;
};Types
Colors
What createColors returns: whether colour is on, and every style.
type Colors = {
isColorSupported: boolean;
} & Record<StyleName, Formatter>;Formatter
One style: the input, stringified, between an open and a close code.
type Formatter = (input: unknown) => string;roundel/chalk
Every export of roundel/chalk, with its signature and doc comment: modifierNames, foregroundColorNames, backgroundColorNames, underlineColorNames, colorNames, supportsColor and 3 more, plus 16 types.
roundel/terminal
Every export of roundel/terminal, with its signature and doc comment: unicode, AGENTS, interactive, plus 2 types.