Socket
Socket
Sign inDemoInstall

dom-json-tree

Package Overview
Dependencies
1
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    dom-json-tree

Visualize the JSON object to the DOM.


Version published
Weekly downloads
11
increased by37.5%
Maintainers
1
Install size
576 kB
Created
Weekly downloads
 

Readme

Source

DOM JSON Tree

Version

Visualize the JSON object to the DOM.

Usage

// import module
import DomJsonTree from 'dom-json-tree';

let djt = new DomJsonTree(json, document.body);
djt.render();

Options

let djt = new DomJsonTree(json, document.body, {
  colors: {
    key: "#008080",
    type: "#546778",
    typeNumber: "#000080",
    typeString: "#dd1144",
    typeBoolean: "#000080"
  }
});

Demo

Screenshot

_users_y41132_scm_github_etc_dom-json-tree_test_index html

Development

Installing
# Install npm packages
npm i

Running

# Watch JS & CSS
npm run watch

Open "test/index.html" in a browser

Library

Deployment

# Build
npm run build

# Test
npm run test

# Version Up
npm version major|minor|patch

# Publishes a package to the registry
npm publish

# Update master branch
git push origin master

# Push git tags
git push origin --tags

Keywords

FAQs

Last updated on 09 Jan 2020

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc