nodetree-js
Library for node tree building, navigation and serialization
Installation
To start using Nodetree-JS in your website, simply install it as a Node.js module:
$ npm install --save nodetree-js
Using Nodetree-JS
In the browser, getting started is as simple as:
const oNodeBase = Nodetree;
In Node.js, you'll need to require() it first:
const Nodetree = const oNodeBase = Nodetree;
Usage
const oNodeBase = Nodetree; const oNodeChild_1 = Nodetree;const oNodeChild_2 = Nodetree;const oNodeChild_3 = Nodetree;const oNodeChild_4 = Nodetree; oNodeBase;oNodeBase;oNodeBase; oNodeChild_1; // serializeconst sSerialized = oNodeBase;// get hashcode of the node treeconst sHashCode = oNodeBase;// create a new node tree from a serialized oneconst oNewNodeTree = Nodetree; // get a node inside the tree with the idoNodeChild_4 = oNewNodeTree;