Wrapper around util.inspect to dump your nested objects to the console.
npm install @knighted/dump@knighted/dump!CI

Wrapper around Node's util.inpsect to dump your nested objects to the console.
``js
import { dump } from '@knighted/dump'
const nested = {
knighted: {
code: {
monkey: {
bananas: true
}
}
}
}
dump({
obj: nested,
prefix: 'prefix',
opts: { depth: 3, colors: true }
})
`
Output:
``
prefix {
knighted: { code: { monkey: { bananas: true } } }
}
Or simply use dump.log if not passing opts.
`js`
dump.log(nested, 'prefix') // Same output as above
* obj The object to dumpprefix
* Helpful hint prefixed to the dumpopts
* Same as https://nodejs.org/api/util.html#utilinspectobject-options
dump.log(obj) uses until.inspect(obj, false, null, true)`.