dt-inspector
v0.0.0
Published
in-browser inspect element
Downloads
2
Readme
dt-inspector
In-browser clone of Chrome's Inspect Element.
Useful when debugging on mobile devices.
Example
const Inspector = require('dt-inspector')
const inspector = new Inspector()
inspector.on('inspect', function (target) {
console.log('inspect', target)
})
inspector.on('click', function (target) {
console.log('click', target.outerHTML)
})
inspector.enable()
// inspector.disable() // Removes all traces of Inspector
For documentation check the source code.
Compatibility
Credits
Based on element-inspector.js created by @cou929.