0.0.3 • Published 5 months ago

simple-json-viewer v0.0.3

Weekly downloads
2
License
-
Repository
github
Last release
5 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.3

5 months ago

0.0.1

5 months ago

0.0.2

5 months ago

0.6.0

6 years ago

0.5.0

6 years ago

0.4.1

6 years ago