Package Exports
- inspector-gadget
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (inspector-gadget) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
inspector-gadget 🕵🗜⚙
preconfigured nodejs util for inspecting, and customizing inspecting
inspectorGadget 🗜
configure what is exposed when inspecting
const {inspectorGadget} = require('inspector-gadget')
class Eh {
constructor() {
this.inspect = inspectorGadget(this, ['property-to-ignore'])
}
}
inspector 🕵
const {inspector} = require('inspector-gadget')
const inspected = inspector({
some: {
super: {
deep: {
data: {
with: {
colors: function() {
this.array = ['with inspection with colors pre configured']
}
}
}
}
}
}
})
console.log(inspected)
custom ⚙
const {custom} = require('inspector-gadget')
// disables
custom(false)
// re-enables
custom(true)
// changes to your value, be careful.
custom(() => {})
options
- if it fails to inspect, it will javascript-stringify
- second arg is a number, how deep you want to go (default 30)
- 3rd arg is options to override pre-configured nodejs util inspect options
- it also exports
util
, for your convenience in destructuring