Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/klntsky/less-json
https://github.com/klntsky/less-json
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/klntsky/less-json
- Owner: klntsky
- Created: 2024-05-19T18:00:22.000Z (8 months ago)
- Default Branch: master
- Last Pushed: 2024-05-19T18:26:57.000Z (8 months ago)
- Last Synced: 2024-09-20T13:06:49.832Z (4 months ago)
- Language: JavaScript
- Size: 8.79 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# less-json
An utility to inspect large JSON objects in the command line interactively using collapse/expand functionality.
For example:
```javascript
import lessJSON from 'less-json';const responseJson = {
hi: 'hello',
who: [
'world',
]
}await lessJSON(responseJson)
```The output will look like this:
```
at functionName (file:///home/my-username/my-repo/my-source.js:9:9)
|- [+]
```This output can be expanded interactively:
```
at functionName (file:///home/my-username/my-repo/my-source.js:9:9)
|- [-]
|- hi: hello
|- who [-]
|- 0: world
```