mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-01-30 13:37:35 +00:00
14 lines
267 B
TypeScript
14 lines
267 B
TypeScript
import * as table from 'table';
|
|
|
|
const border: table.JoinStruct = table.getBorderCharacters('norc');
|
|
|
|
const data = [
|
|
['first name', 'last name'],
|
|
['jane', 'doe'],
|
|
['john', 'doe']
|
|
];
|
|
|
|
const config: table.TableUserConfig = { border };
|
|
|
|
table.table(data, config);
|