npm i element-inspector
import { startPick } from 'element-inspector'
startPick({
onClick: (el) => console.log(el)
});
Link your library for local use
npm link
# change dir to your app that will use this lib, and run:
npm link <my-lib>
npm test
npm run build
npm publish
MIT
Thanks for @jamesbechet for his work in https://github.com/jamesbechet/element-picker.
I modified it to suite my needs and some enhancements.
His work is attributed in LICENSE
file.