1.0.0 • Published 9 years ago

selection-position v1.0.0

Weekly downloads
294
License
MIT
Repository
github
Last release
9 years ago

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