caret-position2
Get and set the user's text selection on an input or text area.
$ npm install caret-position2
var get = ;var set = ; // Set caret position after the first character // -> { start:1, end:1, caret:1 } // Set text selection to the second and third character // -> { start:1, end:3, caret:3 }