UNPKG

@accounter/server

Version:
22 lines (21 loc) 693 B
/** * String padding utilities for fixed-width formatting */ /** * Pads a string on the left (right-aligns the content) * * @param value - The string to pad * @param width - Target width * @param fill - Character to use for padding (default: space) * @returns Left-padded string */ export declare function padLeft(value: string, width: number, fill?: string): string; /** * Pads a string on the right (left-aligns the content) * * @param value - The string to pad * @param width - Target width * @param fill - Character to use for padding (default: space) * @returns Right-padded string */ export declare function padRight(value: string, width: number, fill?: string): string;