UNPKG

add-dist-header

Version:

Prepend a one-line banner comment (with license notice) to distribution files

31 lines (29 loc) 790 B
//! add-dist-header v1.6.2 ~~ https://github.com/center-key/add-dist-header ~~ MIT License export type Settings = { allFiles: boolean; dist: string; extension: string | null; delimiter: string; replaceComment: boolean; setVersion: boolean; }; export type Result = { valid: boolean; text: boolean; dist: string; header: string | null; source: string; file: string; length: number | null; size: string | null; }; export type ReporterSettings = { quiet: boolean; }; declare const addDistHeader: { assert(ok: unknown, message: string | null): void; cli(): void; prepend(filename: string, options?: Partial<Settings>): Result; reporter(result: Result, options?: ReporterSettings): Result; }; export { addDistHeader };