ascii-dendrogram

0.1.1 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i ascii-dendrogram

Weekly Downloads

0

Version

0.1.1

License

ISC

Unpacked Size

17.7 kB

Total Files

13

Last publish

Collaborators

  • orlandogroppo