# yatf

> Yet another ASCII table formatter

Latest version **1.0.4** (published 2013-01-05) · 0 weekly downloads

## Install

```sh
npm install yatf
pnpm add yatf
yarn add yatf
bun add yatf
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.4 |
| Published | 2013-01-05 |
| First published | 2012-06-21 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Node | * |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Jakob Borg |
| Maintainers | calmh |

## Links

- npm: https://www.npmjs.com/package/yatf
- Repository: https://github.com/calmh/node-yatf
- npm.io page: https://npm.io/package/yatf

## Dependencies (1)

- [colors](https://npm.io/package/colors.md) 0.6.x

## Recent versions

- 1.0.4 (latest) — 2013-01-05
- 1.0.3 — 2012-08-11
- 1.0.2 — 2012-06-24
- 1.0.1 — 2012-06-22
- 1.0.0 — 2012-06-21

## README

yatf
====

Yet Another Table Formatter, obviously. The point of this one is to handle
column layout and fit into the current window size. It leaves the formatting
completely up to you, except for the `underlineHeaders` option which you can't
do anyway until you know how wide the columns become.

If the window isn't wide enough to display all columns, they'll be truncated and markers indicating this will be shown.

Example
-------

    var table = require('yatf');
    
    var headers = [ 'NAME', 'PROPERTY', 'VALUE', 'SOURCE' ];
    
    var data = [
    [ 'zones'.bold, 'compressratio', '1.06x', '-' ],
    [ 'zones/01b2c898-945f-11e1-a523-af1afbe22822'.blue.bold, 'compressratio', '1.93x'.magenta, '-' ],
    // ...
    [ 'zones/b2535e73-0892-4183-9e02-0255c6dde661/data'.magenta.bold, 'compressratio', '1.34x'.magenta, '-' ],
    ];
    
    table(headers, data, { underlineHeaders: true });

![](https://github.com/calmh/node-yatf/raw/master/screenshot.png)

License
-------

MIT

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