0.1.2 • Published 7 years ago

tabela v0.1.2

Weekly downloads
9
License
MIT
Repository
github
Last release
7 years ago

tabela

Create simple tables.

Installation

Install it with the following command:

$ npm install tabela

Usage

var tabela = require("tabela");

tabela(data, options)

Where data must be an array of arrays with the table data.

And options must be an object.

The options can be:

Example

See the below example:

"use strict";

var tabela = require("tabela");

var table = tabela([
  ["Name", "Ana", "Bruna", "Camila"],
  ["Age", 21, 20, 30],
  ["Weight", "70 kg", "85 kg", "78 kg"],
  ["Height", "1,86 m", "1,71 m", "1,66 m"]
]);

console.log(table);

The above example will return:

+--------------------------------+
| Name   | Age | Weight | Height |
|--------|-----|--------|--------|
| Ana    | 21  | 70 kg  | 1,86 m |
| Bruna  | 20  | 85 kg  | 1,71 m |
| Camila | 30  | 78 kg  | 1,66 m |
+--------------------------------+

License

MIT

0.1.2

7 years ago

0.1.1

8 years ago

0.1.0

8 years ago

0.0.5

8 years ago

0.0.4

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago