selection

0.0.1 • Public • Published

selection

DOM selection manipulation. Barely functional, probably not useful to you :D

Installation

Install with component(1):

$ component install ccomponent/selection

Example

var selection = require('selection');
 
var sel = selection(document.querySelector('p'));
 
// range
sel.select(4, 7);
 
// move caret
sel.select(10)

License

MIT

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.1
    62
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.1
    62

Package Sidebar

Install

npm i selection

Weekly Downloads

49

Version

0.0.1

License

MIT

Last publish

Collaborators

  • tjholowaychuk