Files
iptv/scripts/core/cliTable.ts

23 lines
435 B
TypeScript
Raw Normal View History

2025-10-08 21:25:22 +03:00
import { ComplexOptions } from 'console-table-printer/dist/src/models/external-table'
import { Table } from 'console-table-printer'
export class CliTable {
table: Table
constructor(options?: ComplexOptions | string[]) {
this.table = new Table(options)
}
append(row) {
this.table.addRow(row)
}
render() {
this.table.printTable()
}
toString() {
return this.table.render()
}
}