Visualize the JSON object to the DOM.
// import module
import DomJsonTree from 'dom-json-tree';
let djt = new DomJsonTree(json, document.body);
djt.render();
let djt = new DomJsonTree(json, document.body, {
colors: {
key: "#008080",
type: "#546778",
typeNumber: "#000080",
typeString: "#dd1144",
typeBoolean: "#000080"
}
});
# Install npm packages
npm i
# Watch JS & CSS
npm run watch
Open "test/index.html" in a browser
- Superfine - View
# 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