@types/ansi-align
TypeScript definitions for ansi-align
Last updated 2 years ago by types .
MIT · Repository · Original npm · Tarball · package.json
$ cnpm install @types/ansi-align 
SYNC missed versions from official npm registry.

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.

Current Tags

  • 3.0.5                                ...           latest (2 years ago)
  • 3.0.0                                ...           ts4.2 (3 years ago)
  • 3.0.0                                ...           ts4.3 (3 years ago)
  • 3.0.0                                ...           ts4.4 (3 years ago)
  • 3.0.4                                ...           ts4.5 (2 years ago)
  • 3.0.5                                ...           ts4.6 (2 years ago)
  • 3.0.5                                ...           ts4.7 (2 years ago)
  • 3.0.5                                ...           ts4.8 (2 years ago)
  • 3.0.5                                ...           ts4.9 (2 years ago)
  • 3.0.5                                ...           ts5.0 (2 years ago)
  • 3.0.5                                ...           ts5.1 (2 years ago)
  • 3.0.5                                ...           ts5.2 (2 years ago)
  • 3.0.5                                ...           ts5.3 (2 years ago)
  • 3.0.5                                ...           ts5.4 (2 years ago)
  • 3.0.5                                ...           ts5.5 (2 years ago)
  • 3.0.5                                ...           ts5.6 (2 years ago)
  • 3.0.5                                ...           ts5.7 (2 years ago)
  • 3.0.5                                ...           ts5.8 (2 years ago)
  • 3.0.5                                ...           ts5.9 (2 years ago)

6 Versions

  • 3.0.5                                ...           2 years ago
  • 3.0.4                                ...           2 years ago
  • 3.0.3                                ...           2 years ago
  • 3.0.2                                ...           2 years ago
  • 3.0.1                                ...           3 years ago
  • 3.0.0                                ...           3 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 1
Last Day 0
Last Week 1
Last Month 0
Dependencies (0)
None
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2013 - present © cnpmjs.org | Home |