npm.io
0.0.3 • Published 11 years agoCLI

terminal-tree

Licence
MIT
Version
0.0.3
Deps
2
Vulns
0
Weekly
0
Stars
4

terminal-tree

screenshot

Installation

$ npm i -g terminal-tree

CLI

$ terminal-tree example.json

Output Markdown from 'tree' command.

$ tree -J | terminal-tree -Tm

for Node.js

var tree = require("terminal-tree");

var data = {
  test: [1, 2, 3, 4],
  foo: "bar"
};

console.log(tree(data, {
  symbol: true,
  highlight: true,
  padding: 1
}));

API

License

MIT

Keywords