🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

@types/ansi-html

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/ansi-html

TypeScript definitions for ansi-html

0.0.0
ts4.6
ts4.7
ts4.8
ts4.9
ts5.0
ts5.1
ts5.2
ts5.3
ts5.4
ts5.5
ts5.6
ts5.7
ts5.8
ts5.9
latest
Source
npm
Version published
Weekly downloads
5.5K
-20.03%
Maintainers
1
Weekly downloads
 
Created
Source

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.

FAQs

Package last updated on 30 Dec 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts