w-jsonview-table
v1.0.25
Published
A wrapper for json.human.js.
Downloads
13
Maintainers
Readme
w-jsonview-table
A wrapper for json.human.js.
Documentation
To view documentation or get support, visit docs.
Example
To view some examples for more understanding, visit examples:
small data: ex-small.html [source code]
large data: ex-large.html [source code]
formatter: ex-formatter.html [source code]
Installation
Using npm(ES6 module):
Note: w-jsonview-table is not dependent on any package.
npm i w-jsonview-table
By import:
import jv from 'w-jsonview-table'
let data={a1:123,b1:'xyz',c1:[1.2,3.4,'5.6',false],d1:{cid:'WK2WHS',name:'peter',unique:false}}
let ele=document.querySelector('#id')
jv(data, element)
In a browser(UMD module):
Add script for w-jsonview-table.
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/w-jsonview-table.umd.js"></script>
Directly use:
let jv=window['w-jsonview-table']
let data={a1:123,b1:'xyz',c1:[1.2,3.4,'5.6',false],d1:{cid:'WK2WHS',name:'peter',unique:false}}
let ele=document.querySelector('#id')
jv(data, ele)