{"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":"http://registry-npm.ywwl.com/selection-range/download/selection-range-0.0.3.tgz","integrity":"sha512-iB4z+HfJw8dysyTZYFVsCYPMxKLz6pKrkVEN1TQdoYi+b/9yF5ew48Gooimv2GrGGBQaoEpB/9a5SJbpgxM6Sw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHGlbhW4C9kTUEp+A1wn5bTTkNHOB+brvf28Eh10eGWEAiB6U8c72hecW6E0/Rd42TiutDNv3x2ReteVjiYynXkehg=="}],"size":2659,"noattachment":false,"key":"/selection-range/-/selection-range-0.0.3.tgz"},"directories":{},"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","publish_time":1402944772764,"_cnpm_publish_time":1402944772764,"dist-tags":{"latest":"1.1.0"}}