terminal-tree

0.0.3 • Public • Published

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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.3
    37
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.3
    37

Package Sidebar

Install

npm i terminal-tree

Weekly Downloads

37

Version

0.0.3

License

MIT

Last publish

Collaborators

  • zaftzaft