0.0.33 • Published 1 year ago

json-dom-viewer v0.0.33

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

json-dom-viewer

Written in pure DOM, Json DOM Viewer is a data viewer for dissecting json data.

It is inspired by the Javascript object viewer appearing in our console by either console.log call or simply typing out a global variable and hitting enter.

You can load as many json files as you like. It currently supports: null, Booleans, Numbers, Strings, Objects, and Arrays (parsed as indexed items). Have a look at the Preview and check out its readability yourself!

You can use the module in your own projects by importing it or use it as an electron-based tool.

Preview:

Alt Text

Installation: npm: > npm install json-dom-viewer

View a JSON file: "scripts": { "view-json": "json-dom-viewer ./tests/model.json" }

Importing

<script type="module">

    import viewer from "./node_modules/json-dom-viewer/dist/viewer.js"
    
    Object.assign(document.body.style, {'background': 'black',})
    
    document.body.append(viewer.viewJSON({'a': 1}))
    

</script>

0.0.32

1 year ago

0.0.33

1 year ago

0.0.30

2 years ago

0.0.31

1 year ago

0.0.20

2 years ago

0.0.21

2 years ago

0.0.22

2 years ago

0.0.23

2 years ago

0.0.24

2 years ago

0.0.25

2 years ago

0.0.26

2 years ago

0.0.27

2 years ago

0.0.28

2 years ago

0.0.29

2 years ago

0.0.13

2 years ago

0.0.12

2 years ago

0.0.11

2 years ago

0.0.10

2 years ago

0.0.1

2 years ago