UNPKG

pastoralist

Version:

A tool to watch over node module resolutions and overrides

20 lines (19 loc) 1 kB
import type { BoxOptions, ProgressOptions } from "./types"; export declare const INDENT_SIZE = 3; export declare const width: () => number; export declare const visibleLength: (str: string) => number; export declare const pad: (str: string, len: number, align?: "left" | "right") => string; export declare const truncate: (str: string, maxLen: number) => string; export declare const divider: (char?: string, len?: number) => string; export declare const indent: (str: string, spaces?: number) => string; export declare const line: (str: string) => string; export declare const item: (n: number, str: string, spaces?: number) => string; export declare const box: (lines: string[], options?: BoxOptions) => string[]; export declare const progress: (percent: number, options?: ProgressOptions) => string; export declare const calculateWidths: (items: Array<{ label: string; value: string | number; }>, minLabel?: number, minValue?: number) => { labelWidth: number; valueWidth: number; };