> Get cursor's selection range.
npm install get-selection-range``sh`
$ npm install --save get-selection-range
`js
var getSelectionRange = require('get-selection-range');
// get visible selection range
getSelectionRange.getVisibleSelectionRect();
// get collpase selection range
getSelectionRange.getCollapsedClientRect()
``
MIT © [chilijung]()
[npm-image]: https://badge.fury.io/js/get-selection-range.svg
[npm-url]: https://npmjs.org/package/get-selection-range
[travis-image]: https://travis-ci.org/Canner/get-selection-range.svg?branch=master
[travis-url]: https://travis-ci.org/Canner/get-selection-range
[daviddm-image]: https://david-dm.org/Canner/get-selection-range.svg?theme=shields.io
[daviddm-url]: https://david-dm.org/Canner/get-selection-range