@types/asciify
@types/asciify
npm i @types/asciify
@types/asciify

@types/asciify

The repository for high quality TypeScript type definitions.

by DefinitelyTyped

1.3.30 (see all)License:MITTypeScript:Built-In
npm i @types/asciify
Readme

Installation

npm install --save @types/asciify

Summary

This package contains type definitions for asciify (https://www.npmjs.org/package/asciify).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/asciify.

index.d.ts

// Type definitions for asciify 1.3.5
// Project: https://www.npmjs.org/package/asciify
// Definitions by: Alan Norbauer <http://alan.norbauer.com>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

/// <reference types="node" />

interface AsciifyOptions {
    font?: string | undefined;
    maxWidth?: number | undefined;
    color?: string | undefined;
}

interface AsciifyCallback {
    // err is sometimes a string and sometimes an Error
    (err: any, asciifiedText: string): void
}

declare module "asciify" {
    function asciify(text: string, callback: AsciifyCallback): void;
    function asciify(text: string, options: string, callback: AsciifyCallback): void;
    function asciify(text: string, options: AsciifyOptions, callback: AsciifyCallback): void;

    namespace asciify {
        function getFonts(callback: (err: Error, fonts: string[]) => void): void;
    }

    export = asciify
}

Additional Details

  • Last updated: Wed, 07 Jul 2021 21:44:32 GMT
  • Dependencies: @types/node
  • Global values: none

Credits

These definitions were written by Alan Norbauer.

Downloads/wk

95

GitHub Stars

41K

LAST COMMIT

7mos ago

MAINTAINERS

1

CONTRIBUTORS

17,572

OPEN ISSUES

636

OPEN PRs

224
VersionTagPublished
1.3.30
latest
1yr ago
1.3.30
ts4.7
1yr ago
1.3.30
ts4.6
1yr ago
1.3.30
ts4.8
1yr ago
No alternatives found
No tutorials found
Add a tutorial

Rate & Review

100
No reviews found
Be the first to rate