@acrom/treevis
TypeScript icon, indicating that this package has built-in type declarations

0.0.3 • Public • Published

treevis

Treevis is a small utility to graph LeetCode trees. It's useful to debug visually test cases.

How to Use

$ npm install -g treevis
or
$ yarn global add treevis

then

$ treevis <array>

Example

treevis [5,4,7,3,null,2,null,-1,null,9]

will produce

       5
      / \
     /   \
    4     7
   /     /
  3     2
 /     /
-1    9

Disclaimer

Long trees don't always display correctly.

Readme

Keywords

Package Sidebar

Install

npm i @acrom/treevis

Weekly Downloads

7

Version

0.0.3

License

MIT

Unpacked Size

18.6 kB

Total Files

14

Last publish

Collaborators

  • acrom