JSON To Table
A JavaScript library to convert JSON data to Table.
Feature
- Convert JSON To <table />
Usage
npm install json-table-converter
API
jsonToTableHtmlString(json, options)
Convert Json to <table />
Param | Type | Description |
---|---|---|
json | Object | Array |
|
options | Object |
|
[options.tableStyle] | String |
<table/> Style |
[options.trStyle] | String |
<tr/> Style |
[options.thStyle] | String |
<th/> Style |
[options.tdStyle] | String |
<td/> Style |
[options.tdKeyStyle] | String |
<td/> Key Style |
[options.formatCell] | Function |
Cell Value Format Function |
API Flow Example

Demo
const jsonToTableHtmlString = const html =
Donation
If you find this project useful, you can buy us a cup of coffee:


Contributors
chuyik |