FLUJOS/BACK_BACK/node_modules/ansi-to-html/lib/ansi_to_html.d.ts
2025-11-07 00:06:12 +01:00

23 lines
726 B
TypeScript
Executable file

declare module 'ansi-to-html' {
interface ConverterOptions {
/** The default foreground color used when reset color codes are encountered. */
fg?: string
/** The default background color used when reset color codes are encountered. */
bg?: string
/** Convert newline characters to `<br/>`. */
newline?: boolean
/** Generate HTML/XML entities. */
escapeXML?: boolean
/** Save style state across invocations of `toHtml()`. */
stream?: boolean
/** Can override specific colors or the entire ANSI palette. */
colors?: string[] | {[code: number]: string}
}
class Convert {
constructor(options?: ConverterOptions)
toHtml(data: string): string
}
export = Convert
}