0.0.1 • Published 11 years ago

cli-tree v0.0.1

Weekly downloads
3
License
MIT
Repository
github
Last release
11 years ago

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