# cli-table3-span

> A Node.js module extending cli-table3 with automatic width adjustment and spanning functionality.

Latest version **0.0.1** (published 2024-01-16) · MIT license · 0 weekly downloads

## Install

```sh
npm install cli-table3-span
pnpm add cli-table3-span
yarn add cli-table3-span
bun add cli-table3-span
```

## Health

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

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.1 |
| Published | 2024-01-16 |
| First published | 2024-01-16 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 2.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Boiler Limited |
| Maintainers | boiler-limited |
| Keywords | cli-table, table, console, cli, formatting, span |

## Links

- npm: https://www.npmjs.com/package/cli-table3-span
- Repository: https://github.com/boiler-limited/cli-table3-span
- Homepage: https://github.com/boiler-limited/cli-table3-span#readme
- Issues: https://github.com/boiler-limited/cli-table3-span/issues
- npm.io page: https://npm.io/package/cli-table3-span

## Dependencies (1)

- [cli-table3](https://npm.io/package/cli-table3.md) ^0.6.3

## Alternatives

- [@lexical/table](https://npm.io/package/@lexical/table.md) — 3.0M weekly downloads
- [mantine-datatable](https://npm.io/package/mantine-datatable.md) — 98.2K weekly downloads
- [react-native-collapsible-tab-view](https://npm.io/package/react-native-collapsible-tab-view.md) — 70.6K weekly downloads
- [@handsontable/vue3](https://npm.io/package/@handsontable/vue3.md) — 16.1K weekly downloads
- [vuewordcloud](https://npm.io/package/vuewordcloud.md) — 7.2K weekly downloads

## Recent versions

- 0.0.1 (latest) — 2024-01-16

## README

## Usage Example for cli-table3-span

The `cli-table3-span` module extends `cli-table3` by adding the `spanConsole` option. This option enables the table to span the full width of the console. The `colWidths` property sets the maximum size that a cell is allowed to span.

```javascript
import Table from 'cli-table3-span';

// Create a new table with specified options
const table = new Table({
    head: ['ID', 'Label', 'Created At'],
    colWidths: [5+2, 70, 19+2], // Maximum column widths
    wordWrap: true,
    wrapOnWordBoundary: false,
    spanConsole: true // Enable console spanning
});

// Add some rows to the table
table.push(
    ['12345', 'A label that might be too long will be wrapped', '2024-01-16 10:32'],
    ['67890', 'Another long label for testing', '2024-01-17 11:45']
);

// Render the table to the console
console.log(table.toString());

---
_Source: https://npm.io/package/cli-table3-span · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
