0.1.1 • Published 6 years ago

ascii-dendrogram v0.1.1

Weekly downloads
-
License
ISC
Repository
-
Last release
6 years ago

Ascii Tree

Plot a tree graph with ascii characters.

var jsonGraph = require('./fixtures/nested');
var asciiTree = require('ascii-tree');

let tree = asciiTree(jsonGraph);

console.log(tree)

Feel free to copy and paste the output but remember that monospaces fonts must be used!

                                                ╭› ziooo
                                  ╭has─› ssdfsc ┤
          paren [p] ╮             │             ╰› naltro
s [!] ╮             │             │                       ╭› ciic
    c ┼› dd [ladro] ┼› the roeots ┼› figlioccio ─› pastoo ┤
    x ╯             │             │                       ╰› ytf
      serpe [x] ─had╯             ╰was─› pane
0.1.1

6 years ago