# ut-function.console-table

> Auto-fit console.table

Latest version **1.1.1** (published 2023-02-21) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install ut-function.console-table
pnpm add ut-function.console-table
yarn add ut-function.console-table
bun add ut-function.console-table
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 1.1.1 |
| Published | 2023-02-21 |
| First published | 2023-02-21 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Maintainers | kalin.krustev |

## Links

- npm: https://www.npmjs.com/package/ut-function.console-table
- Repository: https://github.com/softwaregroup-bg/ut-function
- Homepage: https://github.com/softwaregroup-bg/ut-function#readme
- Issues: https://github.com/softwaregroup-bg/ut-function/issues
- npm.io page: https://npm.io/package/ut-function.console-table

## Recent versions

- 1.1.1 (latest) — 2023-02-21
- 1.1.0 — 2023-02-21

## README

# ut-function.console-table

Auto-fit `console.table`

## Usage

`ut-function.console-table` uses `console.table` to show an array
as a table in the console. It will try to shrink or hide columns,
so that the output fits to the specified width.

```js
const table = require('ut-function.console-table');

table(params, options)
```

- `param` can be:
  - an `array`
  - an `object` with properties {`rows`, `name`}, where `name` will be shown in the
    console above the table specified with `rows`
- `options` is an optional parameter with properties:
  - `maxWidth` - the maximum table width
  - `maxColWidth` - the maximum column width

---
_Source: https://npm.io/package/ut-function.console-table · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
