1.0.4 • Published 11 months ago

hierarchical-node-structure v1.0.4

Weekly downloads
-
License
ISC
Repository
github
Last release
11 months ago

HierarchyNode

The HierarchyNode class represents a node in a hierarchical structure.

Installation

npm i hierarchical-node-structure

Usage

const { HierarchyNode } = require('hierarchy-node');

// Create a root node
const rootNode = new HierarchyNode('Root');

// Add child nodes
const child1 = new HierarchyNode('Child 1');
const child2 = new HierarchyNode('Child 2');
rootNode.addNode(child1);
rootNode.addNode(child2);

Please refer to the GitHub README for full documentation.

1.0.4

11 months ago

1.0.3

11 months ago

1.0.2

11 months ago

1.0.0

11 months ago