TS-Tree is a tiny tree data structure written in Typescript.
$ npm install --save ts-tree
const Tree = require('ts-tree').Tree;
import { Tree } from 'ts-tree';
Note: for this to work, the tsc option --moduleResolution
must be set to Node
(see microsoft/TypeScript#7984 for more details).