turtler
🐢 Ascii tables made easy
Installation
npm install turtler --save
Usage
the given options are the defaults
let table = "uid" "name" "1" "Doe" "2" "Hemma" hasHeader: true columnSeparator: ' | ' headerSeparator: '='; console;
This will yield:
uid | name
===========
1 | Doe
2 | Hemma
Markdown
We can also output markdown tables just as easily
let table = "uid" "name" "1" "Doe" "2" "Hemma"; console;
This will yield:
| uid | name |
|-----|-------|
| 1 | Doe |
| 2 | Hemma |
Html
We can also output html tables just as easily
let table = "uid" "name" "1" "Doe" "2" "Hemma"; console;
This will yield:
uid name 1 Doe 2 Hemma