0.0.1 • Published 11 years ago

selection v0.0.1

Weekly downloads
44
License
-
Repository
-
Last release
11 years ago

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