sp
selection-position
npm i selection-position
sp

selection-position

cross-browser function to return the selection position

by Ben McMahen

1.0.0 (see all)License:MITTypeScript:Not Found
npm i selection-position
Readme

selection-position

Determine the current position of the selection or cursor.

Installation

Install with component(1):

$ component install bmcmahen/selection-position

Example

var position = require('selection-position');
var rect = position();
// rect.top, rect.height, etc.

Tests

npm install component-test -g
component test browser

License

MIT

Downloads/wk

31

GitHub Stars

10

LAST COMMIT

8yrs ago

MAINTAINERS

1

CONTRIBUTORS

0

OPEN ISSUES

0

OPEN PRs

0
VersionTagPublished
1.0.0
latest
8yrs ago
No alternatives found
No tutorials found
Add a tutorial
No dependencies found

Rate & Review

100
No reviews found
Be the first to rate