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

3.0.5 • Public • Published

Installation

npm install --save @types/ansi-align

Summary

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

Details

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

index.d.ts

type Align = "left" | "center" | "right";

interface AnsiAlign {
    (text: string, opts?: { align?: Align; split?: string; pad?: string }): string;
    (text: readonly string[], opts?: { align?: Align; pad?: string }): string[];
    center(text: string): string;
    center(text: readonly string[]): string[];
    right(text: string): string;
    right(text: readonly string[]): string[];
    left(text: string): string;
    left(text: readonly string[]): string[];
}

declare const ansiAlign: AnsiAlign;

export = ansiAlign;

Additional Details

  • Last updated: Wed, 07 Feb 2024 13:06:44 GMT
  • Dependencies: none

Credits

These definitions were written by Leon Si.

Versions

Current Tags

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 3.0.5
    2,601
  • 3.0.4
    64
  • 3.0.3
    4
  • 3.0.2
    0
  • 3.0.1
    2
  • 3.0.0
    135

Package Sidebar

Install

npm i @types/ansi-align

Weekly Downloads

2,272

Version

3.0.5

License

MIT

Unpacked Size

3.59 kB

Total Files

5

Last publish

Collaborators

  • types