table-it

1.0.2 • Public • Published

table-it

This module can be used to convert any form of json or array to a HTML table.

var tableit = require("table-it")
// Example 1 
var data = {
    "A":"A1",
    "B":"B1"
}
console.log( tableit(data) )

// Example 2
var data = [{
    "A":"A1",
    "B":"B1"
    },{
    "A":"A2",
    "B":"B2"
}]
console.log( tableit(data) )

// Example 3
var data = [{
    "A":"A1",
    "B":"B1"
    },{
    "A":[11,12,13],
    "B":"B2"
}]
console.log( tableit(data) )

// Example 4
var data = {
    "A":"A1",
    "B":[
            {
                "C":"C1"    
            }
        ]
}

console.log( tableit(data) )

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.0.22latest

Version History

VersionDownloads (Last 7 Days)Published
1.0.22
1.0.10
1.0.00

Package Sidebar

Install

npm i table-it

Weekly Downloads

2

Version

1.0.2

License

ISC

Last publish

Collaborators

  • niteenautade