cli-tree

0.0.1 • Public • Published

cli-tree

Object tree viewer for the CLI

Installation

$ npm install cli-tree

Example

var tree = require('cli-tree');
 
var objct = {
  propA: "aaaaaaa",
  propB: "bbbbbbb",
  propC: {
    propE: "eeeeee",
    propF: {
      propG: {
        propI: "iiiiii"
      },
      propH: "hhhhhh"
    }
  },
  propD: "dddddd",
  objName: "testObject"
}
 
tree(object);
/*
  [testObject]
  ├─── propA
  ├─── propB
  ├─── propC
    ├─── propE
      ├─── propF
      ├─── propG
        ├─── propI
      ├─── propH
  ├─── propD
*/

License

The MIT License (MIT)

Copyright (c) 2014 Masaaki Morishita

Readme

Keywords

Package Sidebar

Install

npm i cli-tree

Weekly Downloads

21

Version

0.0.1

License

MIT

Last publish

Collaborators

  • morishitter