$ npm i -g terminal-tree
$ terminal-tree example.json
Output Markdown from 'tree' command.
$ tree -J | terminal-tree -Tm
var tree = require("terminal-tree");
var data = {
test: [1, 2, 3, 4],
foo: "bar"
};
console.log(tree(data, {
symbol: true,
highlight: true,
padding: 1
}));
MIT