zns-table
TypeScript icon, indicating that this package has built-in type declarations

0.1.2 • Public • Published

zns-table

npm i zns-table

var ZnsTable = require('zns-table');
 
var dataArray = [{
    title1: 'value1',
    title2: 'value2',
    title3: 'value3'
}, {
    title2: 'value2',
    title3: 'value3'
}, {
    title1: 'value1',
    title2: 'value2',
    title3: 'value3'
}, {
    title1: 'value1',
    title3: 'value3'
}]
 
var table = new ZnsTable(dataArray);
console.log(table.print());
 
// custom header
table = new ZnsTable(dataArray, ['title1', 'title3']);
console.log(table.print());

Readme

Keywords

Package Sidebar

Install

npm i zns-table

Weekly Downloads

0

Version

0.1.2

License

MIT

Last publish

Collaborators

  • znsme