{"_id":"seleccion","_rev":"4-7a54f9cfe89ce85eeebeee510914833b","name":"seleccion","description":"A getSelection polyfill and a setSelection dreamweaver","dist-tags":{"latest":"2.0.0"},"versions":{"1.0.0":{"name":"seleccion","version":"1.0.0","description":"A getSelection polyfill","main":"src/getSelection.js","repository":{"type":"git","url":"git+https://github.com/bevacqua/seleccion.git"},"author":{"name":"Nicolas Bevacqua","email":"nicolasbevacqua@gmail.com","url":"http://bevacqua.io/"},"license":"MIT","bugs":{"url":"https://github.com/bevacqua/seleccion/issues"},"homepage":"https://github.com/bevacqua/seleccion","dependencies":{},"devDependencies":{"browserify":"8.1.0","jshint":"2.5.11","uglify-js":"2.4.16"},"gitHead":"8abbb44517b2bc786b69aea66b4a48b3c61e0d16","_id":"seleccion@1.0.0","scripts":{},"_shasum":"3d9429b1061e0ab44cf453d155c744b545d79d41","_from":".","_npmVersion":"2.13.1","_nodeVersion":"2.3.3","_npmUser":{"name":"bevacqua","email":"nicolasbevacqua@gmail.com"},"maintainers":[{"name":"bevacqua","email":"nicolasbevacqua@gmail.com"}],"dist":{"shasum":"3d9429b1061e0ab44cf453d155c744b545d79d41","tarball":"https://registry.npmjs.org/seleccion/-/seleccion-1.0.0.tgz","integrity":"sha512-IxbdVRjMxUYK5iUNKuxvsrTa6ZJhI1muNqPsENw7vZOBHT3JYVwzohGPVGH2+2c6Obeu3TNdIguvy61frRRc4Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCSoKjVfvsvkNDXDI9jvrVhX230Wvmvnb9C6cUWCIba4wIgQQ0wfRe9UrXPv1F950kWZfBGejjqJ0v36VdKlnMpPtg="}]}},"2.0.0":{"name":"seleccion","version":"2.0.0","description":"A getSelection polyfill and a setSelection dreamweaver","main":"src/seleccion.js","repository":{"type":"git","url":"git+https://github.com/bevacqua/seleccion.git"},"author":{"name":"Nicolas Bevacqua","email":"nicolasbevacqua@gmail.com","url":"http://bevacqua.io/"},"license":"MIT","bugs":{"url":"https://github.com/bevacqua/seleccion/issues"},"homepage":"https://github.com/bevacqua/seleccion","dependencies":{},"devDependencies":{"browserify":"8.1.0","jshint":"2.5.11","uglify-js":"2.4.16"},"gitHead":"3633c5efc386c34f8f1fa58d72bbe0e15e544936","_id":"seleccion@2.0.0","scripts":{},"_shasum":"0984ac1e8df513e38b41a608e65042e8381e0a73","_from":".","_npmVersion":"2.13.1","_nodeVersion":"2.3.3","_npmUser":{"name":"bevacqua","email":"nicolasbevacqua@gmail.com"},"maintainers":[{"name":"bevacqua","email":"nicolasbevacqua@gmail.com"}],"dist":{"shasum":"0984ac1e8df513e38b41a608e65042e8381e0a73","tarball":"https://registry.npmjs.org/seleccion/-/seleccion-2.0.0.tgz","integrity":"sha512-PhrdUIWfCSpXujtwb2E+v/L4VgOo8KGn860V/Nep57IxL8Mz7vGCZ5yCCMU6IJVt4rE5XG9TRT1tpcXxXYqqcQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCZcV61ZNMruUokUVv+StQtAOu0fkicTCixIrbFsf3gQwIhAM96YS/iRXAepfaXgudGqiUFq6eo2+FAraXGtx57zzsh"}]}}},"readme":"# seleccion\n\n> A `getSelection` polyfill and a `setSelection` dreamweaver\n\nIncludes also a `setSelection` method. See also [sell][2] to work with selection within `<input>` and `<textarea>` elements.\n\n# install\n\n```shell\nnpm install seleccion\n```\n\n# `seleccion.getSelection`\n\nProvides a polyfill for `window.getSelection`.\n\n```js\nvar getSelection = require('seleccion').get;\n```\n\n- Defaults to `window.getSelection` if available\n- Falls back to `document.selection`\n- Falls back to a naïve null object if both are unavailable\n\n# `seleccion.set(range)`\n\nProvides a convenient cross-browser method to set the text selection into `range`.\n\n```js\nvar setSelection = require('seleccion').set;\nsetSelection({\n  startContainer: document.querySelector('#some-span'),\n  startOffset: 0,\n  endContainer: document.querySelector('#another-span'),\n  endOffset: 24,\n  collapsed: false\n});\n```\n\n# license\n\nMIT\n\n[1]: https://msdn.microsoft.com/en-us/library/ms536401(v=vs.85).aspx\n","maintainers":[{"name":"bevacqua","email":"nicolasbevacqua@gmail.com"}],"time":{"modified":"2022-06-26T17:21:56.916Z","created":"2015-07-22T07:09:11.604Z","1.0.0":"2015-07-22T07:09:11.604Z","2.0.0":"2015-07-23T01:35:01.510Z"},"homepage":"https://github.com/bevacqua/seleccion","repository":{"type":"git","url":"git+https://github.com/bevacqua/seleccion.git"},"author":{"name":"Nicolas Bevacqua","email":"nicolasbevacqua@gmail.com","url":"http://bevacqua.io/"},"bugs":{"url":"https://github.com/bevacqua/seleccion/issues"},"license":"MIT","readmeFilename":"readme.markdown"}