https://github.com/matype/cli-tree
Object tree viewer for the CLI
https://github.com/matype/cli-tree
Last synced: about 1 year ago
JSON representation
Object tree viewer for the CLI
- Host: GitHub
- URL: https://github.com/matype/cli-tree
- Owner: matype
- License: other
- Created: 2014-05-26T17:20:13.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2014-05-29T11:56:44.000Z (about 12 years ago)
- Last Synced: 2025-06-03T11:33:06.478Z (about 1 year ago)
- Language: JavaScript
- Size: 137 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.markdown
- License: LICENSE
Awesome Lists containing this project
README
# cli-tree
Object tree viewer for the CLI
## Installation
```shell
$ npm install cli-tree
```
## Example
```javascript
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