Tabletops
A small tool that makes displaying tables in the terminal easy.
Table of Contents
Installation
npm install tabletops --save
Usage
const CliTable = ;
Requires the module.
const table = ;
Creates a new table.
table;
Sets the title of the table.
table;
Sets table column keys, their shown title and the width of the column.
table;
Sets rows for the table.
table;
Shows a footer at the bottom of the table, showing the amount of rows in the table.
table;
Shows the table.
Advanced Usage
table;
Interactively adds a new row to the table (you should not add a footer to the specified table, as the outcome might look strange.)
Tests
npm test
Release History
- 0.1.0 - Initial Release
- 0.1.1 - Implemented tests
- 0.1.2 - Updated package.json
- 0.1.3 - Added async functionality
License
Copyright (c) 2019 F. Rick Reich. Licensed under the terms of the MIT license. http://frickreich.mit-license.org/