binary-tree-printer
v0.0.3
Published
```bash npm install --save binary-tree-printer ```
Downloads
5
Readme
Install
npm install --save binary-tree-printer
Usage
const tree_1 = require("binary-tree-printer");
const t = {
"value": 1,
"left": {
"value": 2,
"left": null,
"right": null
},
"right": {
"value": 3,
"left": null,
"right": null
}
}
console.log(tree_1.printAsciiTree(t));
/**
1
/ \
/ \
/ \
2 3
*/