get-input-selection (npm): getInputSelection() provides carrot position for textarea. Works as selectionBegin and selectionEnd for all browsers
Keywords: textarea|carrot|position