mirror of
https://github.com/iptv-org/iptv.git
synced 2025-05-12 01:50:04 -04:00
21 lines
300 B
TypeScript
21 lines
300 B
TypeScript
import { Table } from 'console-table-printer'
|
|
|
|
export class CliTable {
|
|
table: Table
|
|
|
|
constructor(options?) {
|
|
this.table = new Table(options)
|
|
}
|
|
|
|
append(row) {
|
|
this.table.addRow(row)
|
|
}
|
|
|
|
render() {
|
|
this.table.printTable()
|
|
}
|
|
|
|
toString() {
|
|
return this.table.render()
|
|
}
|
|
}
|