dom-json-tree

1.0.7 • Public • Published

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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.7
    15
    • latest

Version History

Package Sidebar

Install

npm i dom-json-tree

Weekly Downloads

15

Version

1.0.7

License

ISC

Unpacked Size

540 kB

Total Files

21

Last publish

Collaborators

  • t4y3