selection-position

1.0.0 • Public • Published

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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.0
    31
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.0
    31

Package Sidebar

Install

npm i selection-position

Weekly Downloads

31

Version

1.0.0

License

MIT

Last publish

Collaborators

  • bmcmahen