{"_id":"selection-range","_rev":"10-7f6c2208df573c1090a7f7f62a6d301d","name":"selection-range","description":"get or set the selction range, or cursor position, for contenteditable","dist-tags":{"latest":"1.1.0"},"versions":{"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":"tootallnate","email":"nathan@tootallnate.net"}],"dist":{"shasum":"91e639ac4dc445ce382062ed3a11ae28816be48a","tarball":"https://registry.npmjs.org/selection-range/-/selection-range-0.0.3.tgz","integrity":"sha512-iB4z+HfJw8dysyTZYFVsCYPMxKLz6pKrkVEN1TQdoYi+b/9yF5ew48Gooimv2GrGGBQaoEpB/9a5SJbpgxM6Sw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHGlbhW4C9kTUEp+A1wn5bTTkNHOB+brvf28Eh10eGWEAiB6U8c72hecW6E0/Rd42TiutDNv3x2ReteVjiYynXkehg=="}]}},"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","tarball":"https://registry.npmjs.org/selection-range/-/selection-range-1.0.0.tgz","integrity":"sha512-dDspNQ+b02uBKfS6J1pxDvmc7a+tey888BES2wr6AXk4CbYhH492UmHCjY/CkiURWws35ffZ55rvN9J1JOC73w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCwUhRHIcQlH+IGM2SFe7y0/PVeIe2raAnL3Z0pPzpy3gIhAJxUux64EHkKaqNrxgUQPrCMpvZkue+uM8v4Kzu+Ixra"}]},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"bmcmahen","email":"ben.mcmahen@gmail.com"},"maintainers":[{"name":"tootallnate","email":"nathan@tootallnate.net"},{"name":"bmcmahen","email":"ben.mcmahen@gmail.com"}]},"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":"tootallnate","email":"nathan@tootallnate.net"},{"name":"bmcmahen","email":"ben.mcmahen@gmail.com"}],"dist":{"shasum":"a5a8063e2570ebd396f4e0d7a958a5c1fc0c886a","tarball":"https://registry.npmjs.org/selection-range/-/selection-range-1.0.1.tgz","integrity":"sha512-F39oh+NxawdJw/PnYvqwLt0LIrkqteyIkEibcSRZqTo4qaKoX1uC7XEc5EDUuDY+5bJGRf6K5BV5lJ3lMZOq4Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCH2tLd4eexQm62I2JdEehZqtRobGQ4TwZSojQMEki1iQIhAOUGT3rzVhZcKZRoUJQ+BSQXmdAk7w56aqwHrpNRriql"}]}},"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":"tootallnate","email":"nathan@tootallnate.net"},{"name":"bmcmahen","email":"ben.mcmahen@gmail.com"}],"dist":{"shasum":"016f27778d1ee39ee722369d66b4e13ca0c8bb30","tarball":"https://registry.npmjs.org/selection-range/-/selection-range-1.1.0.tgz","integrity":"sha512-u0rsk8eBj0FlZsgEvQ4tUmzBoII1Upzv9P55zo7eNH2OcHVbdmVdnzyZQrxK0otu2/vZT4VNYaBzPt7P7Z+y/w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCBQ9v09IFKZSIebkaXzjSzkt0vmojSrODIQ89xd0HAswIgVDGsClzR6cBAIZvko6jwsMhVYuCWgACm7pJnX8KTcYs="}]}}},"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","maintainers":[{"name":"tootallnate","email":"nathan@tootallnate.net"},{"name":"bmcmahen","email":"ben.mcmahen@gmail.com"}],"time":{"modified":"2022-06-26T17:23:34.942Z","created":"2014-06-16T18:52:52.764Z","0.0.3":"2014-06-16T18:52:52.764Z","1.0.0":"2014-08-15T21:17:48.246Z","1.0.1":"2015-02-01T17:39:55.734Z","1.1.0":"2016-01-03T19:46:48.393Z"},"homepage":"https://github.com/bmcmahen/selection-range#readme","keywords":[],"repository":{"type":"git","url":"git+https://github.com/bmcmahen/selection-range.git"},"bugs":{"url":"https://github.com/bmcmahen/selection-range/issues"},"license":"MIT","readmeFilename":"Readme.md"}