UNPKG

mdat

Version:

CLI tool and TypeScript library implementing the Markdown Autophagic Template (MDAT) system. MDAT lets you use comments as dynamic content templates in Markdown files, making it easy to generate and update readme boilerplate.

20 lines (19 loc) 537 B
type SizeInfo = { bytes: number; bytesPretty: string; percent: number; percentPretty: string; }; export type SizeReport = { brotli: SizeInfo; gzip: SizeInfo; original: SizeInfo; }; /** * Analyzes a file's size and its compressed sizes using Brotli and Gzip * @param filePath - Path to the file to analyze * @returns Promise containing detailed size report * @throws Error if file cannot be read or compressed */ export declare function createSizeReport(filePath: string): Promise<SizeReport>; export {};