w-jsonview-table

1.0.25 • Public • Published

w-jsonview-table

A wrapper for json.human.js.

language npm version license gzip file size npm download npm download jsdelivr download

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/w-jsonview-table@1.0.25/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)

Package Sidebar

Install

npm i w-jsonview-table

Weekly Downloads

8

Version

1.0.25

License

MIT

Unpacked Size

1.27 MB

Total Files

59

Last publish

Collaborators

  • semisphere