cli-tree

v0.0.1
Object tree viewer for the CLI
cli tree

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

npm i cli-tree

Metadata

  • MIT
  • Whatever
  • Masaaki Morishita
  • released 5/29/2014

Downloads

Maintainers