get the element at the cursor, or common ancestor of a selection.
Install with component(1):
$ component install component/element-at-cursor
Get the element at the cursor. If you've made a selection, it will return the first common ancestor of the start and end nodes in the selection.
npm install
make test
MIT