caret-pos (npm): Locate the current position of the caret. A plain JavaScript version of Caret.js.
Keywords: caret|cursor|position|offset