0.0.5 • Published 11 months ago

simple-json-viewer v0.0.5

Weekly downloads
2
License
MIT
Repository
github
Last release
11 months ago

simple-json-viewer

A simple web component to display json data

Usage

Plain HTML

<script type="module" src="https://unpkg.com/simple-json-viewer"></script>

<json-viewer data='{"some": "json", "array": [0, true, "2"] }'></json-viewer>

With Javascript

import "https://unpkg.com/simple-json-viewer";

const jv = document.createElement("json-viewer");
// data can be any javascript variable that can stringify to json
jv.data = { some: "json", array: [0, true, "2"] };
document.body.append(jv);

// can also expand all or collapse all
jv.expandAll();
jv.collapseAll();
0.0.5

11 months ago

0.0.4

11 months ago

0.0.3

2 years ago

0.0.1

2 years ago

0.0.2

2 years ago

0.6.0

7 years ago

0.5.0

7 years ago

0.4.1

7 years ago