lerna
Version:
Lerna is a fast, modern build system for managing and publishing multiple JavaScript/TypeScript packages from the same repository
13 lines (12 loc) • 468 B
TypeScript
import { styleText } from "node:util";
export type StyleFormat = Parameters<typeof styleText>[0];
/**
* Apply terminal color/style formatting to text.
* Wraps util.styleText with a programmatic kill switch for tests,
* since test runner workers set FORCE_COLOR=1 which overrides NO_COLOR.
*/
export declare function colorize(format: StyleFormat, text: string): string;
export declare namespace colorize {
var disable: () => void;
var enable: () => void;
}