{"_id":"selection-range","_rev":"411470","name":"selection-range","description":"get or set the selction range, or cursor position, for contenteditable","dist-tags":{"latest":"1.1.0"},"maintainers":[{"name":"bmcmahen","email":"ben.mcmahen@gmail.com"}],"time":{"modified":"2021-08-04T05:09:55.000Z","created":"2014-06-16T18:52:52.764Z","1.1.0":"2016-01-03T19:46:48.393Z","1.0.1":"2015-02-01T17:39:55.734Z","1.0.0":"2014-08-15T21:17:48.246Z","0.0.3":"2014-06-16T18:52:52.764Z"},"users":{},"repository":{"type":"git","url":"git+https://github.com/bmcmahen/selection-range.git"},"versions":{"1.1.0":{"name":"selection-range","description":"get or set the selction range, or cursor position, for contenteditable","version":"1.1.0","keywords":[],"dependencies":{"dom-iterator":"0.3.0"},"component":{"scripts":{"selection-range/index.js":"index.js"}},"license":"MIT","main":"index.js","repository":{"type":"git","url":"git+https://github.com/bmcmahen/selection-range.git"},"gitHead":"20b91a60a74bcebf0f2b1ff907f0bb1aef46879c","bugs":{"url":"https://github.com/bmcmahen/selection-range/issues"},"homepage":"https://github.com/bmcmahen/selection-range#readme","_id":"selection-range@1.1.0","scripts":{},"_shasum":"016f27778d1ee39ee722369d66b4e13ca0c8bb30","_from":".","_npmVersion":"3.3.12","_nodeVersion":"5.1.0","_npmUser":{"name":"bmcmahen","email":"ben.mcmahen@gmail.com"},"maintainers":[{"name":"bmcmahen","email":"ben.mcmahen@gmail.com"}],"dist":{"shasum":"016f27778d1ee39ee722369d66b4e13ca0c8bb30","size":2869,"noattachment":false,"key":"/selection-range/-/selection-range-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/selection-range/download/selection-range-1.1.0.tgz"},"directories":{},"publish_time":1451850408393,"_cnpm_publish_time":1451850408393,"_hasShrinkwrap":false},"1.0.1":{"name":"selection-range","description":"get or set the selction range, or cursor position, for contenteditable","version":"1.0.1","keywords":[],"dependencies":{"dom-iterator":"0.3.0"},"component":{"scripts":{"selection-range/index.js":"index.js"}},"license":"MIT","main":"index.js","repository":{"type":"git","url":"https://github.com/bmcmahen/selection-range.git"},"bugs":{"url":"https://github.com/bmcmahen/selection-range/issues"},"homepage":"https://github.com/bmcmahen/selection-range","_id":"selection-range@1.0.1","_shasum":"a5a8063e2570ebd396f4e0d7a958a5c1fc0c886a","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"bmcmahen","email":"ben.mcmahen@gmail.com"},"maintainers":[{"name":"bmcmahen","email":"ben.mcmahen@gmail.com"}],"dist":{"shasum":"a5a8063e2570ebd396f4e0d7a958a5c1fc0c886a","size":2840,"noattachment":false,"key":"/selection-range/-/selection-range-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/selection-range/download/selection-range-1.0.1.tgz"},"directories":{},"publish_time":1422812395734,"_cnpm_publish_time":1422812395734,"_hasShrinkwrap":false},"1.0.0":{"name":"selection-range","description":"get or set the selction range, or cursor position, for contenteditable","version":"1.0.0","keywords":[],"dependencies":{"dom-iterator":"0.3.0"},"component":{"scripts":{"selection-range/index.js":"index.js"}},"license":"MIT","main":"index.js","repository":{"type":"git","url":"https://github.com/bmcmahen/selection-range.git"},"bugs":{"url":"https://github.com/bmcmahen/selection-range/issues"},"homepage":"https://github.com/bmcmahen/selection-range","_id":"selection-range@1.0.0","dist":{"shasum":"14cd8736eaba48679e557b70c2c5b538f9fe3941","size":2834,"noattachment":false,"key":"/selection-range/-/selection-range-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/selection-range/download/selection-range-1.0.0.tgz"},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"bmcmahen","email":"ben.mcmahen@gmail.com"},"maintainers":[{"name":"bmcmahen","email":"ben.mcmahen@gmail.com"}],"directories":{},"publish_time":1408137468246,"_cnpm_publish_time":1408137468246,"_hasShrinkwrap":false},"0.0.3":{"name":"selection-range","description":"get or set the selction range, or cursor position, for contenteditable","version":"0.0.3","keywords":[],"dependencies":{"dom-iterator":"0.2.1"},"component":{"scripts":{"selection-range/index.js":"index.js"}},"license":"MIT","main":"index.js","repository":{"type":"git","url":"https://github.com/bmcmahen/selection-range.git"},"gitHead":"238e9f4e99e1c87c564f19594b58df8c53163d29","bugs":{"url":"https://github.com/bmcmahen/selection-range/issues"},"homepage":"https://github.com/bmcmahen/selection-range","_id":"selection-range@0.0.3","scripts":{},"_shasum":"91e639ac4dc445ce382062ed3a11ae28816be48a","_from":".","_npmVersion":"1.4.14","_npmUser":{"name":"tootallnate","email":"nathan@tootallnate.net"},"maintainers":[{"name":"bmcmahen","email":"ben.mcmahen@gmail.com"}],"dist":{"shasum":"91e639ac4dc445ce382062ed3a11ae28816be48a","size":2659,"noattachment":false,"key":"/selection-range/-/selection-range-0.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/selection-range/download/selection-range-0.0.3.tgz"},"directories":{},"publish_time":1402944772764,"_cnpm_publish_time":1402944772764,"_hasShrinkwrap":false}},"readme":"\n# selection-range\n\n  Get or set the selection range, or cursor position. Useful for saving and restoring selections when your are programatically changing the dom.\n\n## Installation\n\n    $ component install bmcmahen/selection-range\n    $ npm install selection-range\n\n## Usage\n\n```javascript\nvar select = require('selection-range');\nselect(el, { start: 5, end: 25 }); // select range of el from 5 - 25\nselect(el, { start: 5 }); // set the cursor at 5\nvar pos = select(el); // get range of selection\n// pos.start = start index\n// pos.end = end index\n// pos.atStart = boolean. true if cursor should appear at start of el\n// pos = undefined if no cursor\nselect(el, pos);\n```\n\n## Tests\n\n```\nnpm install component-test -g\ncomponent test browser\n```\n\n## License\n\n  MIT\n","_attachments":{},"homepage":"https://github.com/bmcmahen/selection-range#readme","bugs":{"url":"https://github.com/bmcmahen/selection-range/issues"},"license":"MIT"}