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

Installation

npm install --save @types/columnify

Summary

This package contains type definitions for columnify (https://github.com/timoxley/columnify).

Details

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

index.d.ts

// Type definitions for columnify 1.5
// Project: https://github.com/timoxley/columnify
// Definitions by: Gary King <https://github.com/garyking>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.1

declare function columnify(data: Record<string, any> | any[], options?: columnify.GlobalOptions): string;

declare namespace columnify {
    interface Options {
        align?: "left" | "center" | "centre" | "right" | undefined;
        dataTransform?: ((data: string) => string) | undefined;
        headingTransform?: ((data: string) => string) | undefined;
        minWidth?: number | undefined;
        maxWidth?: number | undefined;
        paddingChr?: string | undefined;
        preserveNewLines?: boolean | undefined;
        showHeaders?: boolean | undefined;
        truncateMarker?: string | undefined;
    }

    interface GlobalOptions extends Options {
        columns?: string[] | undefined;
        columnSplitter?: string | undefined;
        config?: {
            [columnName: string]: Options;
        } | undefined;
        maxLineWidth?: number | undefined;
        truncate?: boolean | undefined;
        widths?: {
            [columnName: string]: Pick<Options, "minWidth" | "maxWidth">;
        } | undefined;
    }
}

export = columnify;

Additional Details

  • Last updated: Mon, 04 Sep 2023 15:41:01 GMT
  • Dependencies: none
  • Global values: none

Credits

These definitions were written by Gary King.

Current Tags

  • 1.5.2                                ...           latest (3 years ago)
  • 1.5.0                                ...           ts2.1 (6 years ago)
  • 1.5.0                                ...           ts2.2 (6 years ago)
  • 1.5.0                                ...           ts2.3 (6 years ago)
  • 1.5.0                                ...           ts2.4 (6 years ago)
  • 1.5.0                                ...           ts2.5 (6 years ago)
  • 1.5.0                                ...           ts2.6 (6 years ago)
  • 1.5.0                                ...           ts2.7 (6 years ago)
  • 1.5.0                                ...           ts2.8 (6 years ago)
  • 1.5.0                                ...           ts2.9 (6 years ago)
  • 1.5.0                                ...           ts3.0 (6 years ago)
  • 1.5.0                                ...           ts3.1 (6 years ago)
  • 1.5.0                                ...           ts3.2 (6 years ago)
  • 1.5.0                                ...           ts3.3 (6 years ago)
  • 1.5.0                                ...           ts3.4 (6 years ago)
  • 1.5.0                                ...           ts3.5 (6 years ago)
  • 1.5.1                                ...           ts3.6 (5 years ago)
  • 1.5.1                                ...           ts3.7 (5 years ago)
  • 1.5.1                                ...           ts3.8 (5 years ago)
  • 1.5.1                                ...           ts3.9 (5 years ago)
  • 1.5.1                                ...           ts4.0 (5 years ago)
  • 1.5.1                                ...           ts4.1 (5 years ago)
  • 1.5.1                                ...           ts4.2 (5 years ago)
  • 1.5.2                                ...           ts4.3 (3 years ago)
  • 1.5.2                                ...           ts4.4 (3 years ago)
  • 1.5.2                                ...           ts4.5 (3 years ago)
  • 1.5.2                                ...           ts4.6 (3 years ago)
  • 1.5.2                                ...           ts4.7 (3 years ago)
  • 1.5.2                                ...           ts4.8 (3 years ago)
  • 1.5.2                                ...           ts4.9 (3 years ago)
  • 1.5.2                                ...           ts5.0 (3 years ago)
  • 1.5.2                                ...           ts5.1 (3 years ago)
  • 1.5.2                                ...           ts5.2 (3 years ago)
  • 1.5.2                                ...           ts5.3 (3 years ago)

3 Versions

  • 1.5.2                                ...           3 years ago
  • 1.5.1                                ...           5 years ago
  • 1.5.0                                ...           6 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 |