1.0.0 • Published 2 years ago
less-json v1.0.0
less-json
An utility to inspect large JSON objects in the command line interactively using collapse/expand functionality.
For example:
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: world1.0.0
2 years ago