New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

json-dom-viewer

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

json-dom-viewer

"Json DOM Viewer"

latest
Source
npmnpm
Version
1.0.0
Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

json-dom-viewer

VoxgigThis open source module is sponsored and supported by Voxgig.

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>

Keywords

parser

FAQs

Package last updated on 17 Jul 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts