0.0.3 • Published 7 years ago
@y0za/boxy v0.0.3
boxy
convert JSON to box-like appearance
Installation
$ npm install -g @y0za/boxy
Usage
sample.json content
{
"object": {
"text": "some text",
"number": 123,
"nested": {
"bool": true,
"null": null
},
"array": [
"first",
"second",
"third"
]
}
}
$ boxy sample.json
┌─────────────────────┐
│ object ───────────┐ │
│ │ text: some text │ │
│ │ number: 123 │ │
│ │ nested ──────┐ │ │
│ │ │ bool: true │ │ │
│ │ │ null: null │ │ │
│ │ └────────────┘ │ │
│ │ array │ │
│ │ ├── [0]: first │ │
│ │ ├── [1]: second │ │
│ │ └── [2]: third │ │
│ └─────────────────┘ │
└─────────────────────┘
License
MIT License