piui
Printable UI for Console
Description
piui is a UI (user interface) toolkit for console. The name piui is abbreviation of PrIntable User Interface.
ToC
Get Started
// Require the whole toolkit.const piui = ; // Or, require a standalone component.const table = ; const rows = name: 'Ch-ing' age: 11 gender: 'female' name: 'Ching' age: 18 gender: 'male' ;const columns = name: 'name' title: 'Name' size: 9 name: 'age' title: 'Age' align: 'right' name: 'gender' title: 'Gender' t ;table;
Components
- piui/table
Create a printable table or print a table directly in console.
About
piui grew out of jinang/table and yuan-console. jinang is an incubator prevent sub modules from depending on 3rd packages. And yuan-console is too heavy for those who only wanna display simple components (e.g. a table or a progress bar) in their cli programs. That is why piui is generated.