Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/component/selection
DOM selection manipulation
https://github.com/component/selection
Last synced: 13 days ago
JSON representation
DOM selection manipulation
- Host: GitHub
- URL: https://github.com/component/selection
- Owner: component
- Created: 2013-09-02T22:46:17.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2013-09-03T14:54:12.000Z (over 11 years ago)
- Last Synced: 2024-05-08T17:06:59.187Z (8 months ago)
- Language: JavaScript
- Size: 121 KB
- Stars: 12
- Watchers: 7
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: Readme.md
- Changelog: History.md
Awesome Lists containing this project
README
# selection
DOM selection manipulation. Barely functional, probably not
useful to you :D## Installation
Install with [component(1)](http://component.io):
$ component install component/selection
## Example
```js
var selection = require('selection');var sel = selection(document.querySelector('p'));
// range
sel.select(4, 7);// move caret
sel.select(10)
```## License
MIT