@furiosa/tree
v1.0.0-alpha.1
Published
A superpower tool to manage and handle nested tree data in typescript
Downloads
4
Maintainers
Readme
🌳 Treekit
Are you feeling stuck when working with tree data structures?
Discover Treekit, your go-to tool for effortlessly manipulating tree data structures. With streamlined methods, it simplifies tasks such as rearranging and updating nodes within your hierarchical data.
Documentation
coming soon...
Installation
To install Treekit, run the following commands
npm install --save @furiosa/tree
Running Tests
To run tests, run the following command
npm run test
Usage
import Tree from "@furiosa/tree";
const data = [
// your tree data
];
const {insert, move, ...} = new Tree(data);
Also you can directly import the methods to use
import {insert, move, ...} "@furiosa/tree/functions";
const data = [
// your tree data
];