@types/ansi-html
TypeScript icon, indicating that this package has built-in type declarations

0.0.0 • Public • Published

Installation

npm install --save @types/ansi-html

Summary

This package contains type definitions for ansi-html (https://github.com/Tjatse/ansi-html).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/ansi-html.

index.d.ts

declare namespace ansiHTML {
    interface Colors {
        reset: string | readonly string[];
        black: string;
        red: string;
        green: string;
        yellow: string;
        blue: string;
        magenta: string;
        cyan: string;
        lightgrey: string;
        darkgrey: string;
    }

    interface Tags {
        open: { [key: number]: string };
        close: { [key: number]: string };
    }

    interface AnsiHTML {
        (text: string): string;
        setColors(colors: Partial<Colors>): void;
        reset(): void;
        tags: Tags;
    }
}

declare const ansiHTML: ansiHTML.AnsiHTML;
export = ansiHTML;

Additional Details

  • Last updated: Sat, 30 Dec 2023 06:35:31 GMT
  • Dependencies: none

Credits

These definitions were written by Sherlock Doyle.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/ansi-html

Weekly Downloads

1,948

Version

0.0.0

License

MIT

Unpacked Size

3.84 kB

Total Files

5

Last publish

Collaborators

  • types