@skyra/start-banner
Version:
A banner generator utility for your CLI
22 lines (19 loc) • 703 B
TypeScript
declare function createBanner(options: BannerOptions): string;
interface BannerOptions {
logo?: readonly string[];
name?: readonly string[];
extra?: readonly string[];
}
declare const ansiRegExp: RegExp;
declare function escapedLength(line: string): number;
declare function generateLineData(lines: readonly string[]): readonly LineData[];
interface LineData {
line: string;
length: number;
}
declare function generateFrameData(lines?: readonly string[]): FrameData;
interface FrameData {
length: number;
lines: readonly string[];
}
export { type BannerOptions, type FrameData, type LineData, ansiRegExp, createBanner, escapedLength, generateFrameData, generateLineData };