DOM JSON Tree
Visualize the JSON object to the DOM.
Usage
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
Development
Installing
npm i
Running
npm run watch
Open "test/index.html" in a browser
Library
Deployment
npm run build
npm run test
npm version major|minor|patch
npm publish
git push origin master
git push origin --tags