UNPKG

askeroo

Version:

A modern CLI prompt library with flow control, history navigation, and conditional prompts

21 lines 565 B
/** * Removes common leading indentation from text. * Works with both template literals and regular strings. * * @example Template literal usage: * ```typescript * const content = dedent` * # Welcome * - This is a list item * `; * // Result: "# Welcome\n- This is a list item" * ``` * * @example String usage: * ```typescript * const content = dedent(" Hello\n World"); * // Result: "Hello\nWorld" * ``` */ export declare function dedent(strings: TemplateStringsArray | string, ...values: any[]): string; //# sourceMappingURL=dedent.d.ts.map