{"_id":"toggle-selection","_rev":"13-8d7425740709355c1223f8fe3deb5f4e","name":"toggle-selection","dist-tags":{"latest":"2.1.0"},"versions":{"1.0.0":{"name":"toggle-selection","version":"1.0.0","keywords":["selection","toggle","browser","deselect"],"author":{"url":"sudodoki.name","name":"sudodoki","email":"smd.deluzion@gmail.com"},"license":"MIT","_id":"toggle-selection@1.0.0","maintainers":[{"name":"sudodoki","email":"smd.deluzion@gmail.com"}],"contributors":[{"url":"https://github.com/shvaikalesh","name":"Aleksej Shvajka"}],"dist":{"shasum":"eb6b1dc046b4b3b13703afcc396fb338292b14e3","tarball":"https://registry.npmjs.org/toggle-selection/-/toggle-selection-1.0.0.tgz","integrity":"sha512-2vgNWGEDlm8lKbLjwde3E/4/3w5cLXSiA6QpDzqgpUw0PKU7Urpae/B339CKOPjXo01H4Pgv8a18oiUpi2RrvQ==","signatures":[{"sig":"MEUCIQDXnJpZC6wwRfYWj0V7C07J+aO/YS8+cxyiZtfL6ifOsgIgGw90pOTzVbqtywuu9IZ8ZJGVnX2ajUNT6n9UDkXiH3Q=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"eb6b1dc046b4b3b13703afcc396fb338292b14e3","gitHead":"60be6fddd584697747f222a359c36e53590f4f84","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"sudodoki","email":"smd.deluzion@gmail.com"},"_npmVersion":"2.11.3","description":"Toggle current selected content in browser","_nodeVersion":"0.12.7","directories":{}},"1.0.1":{"name":"toggle-selection","version":"1.0.1","keywords":["selection","toggle","browser","deselect"],"author":{"url":"sudodoki.name","name":"sudodoki","email":"smd.deluzion@gmail.com"},"license":"MIT","_id":"toggle-selection@1.0.1","maintainers":[{"name":"sudodoki","email":"smd.deluzion@gmail.com"}],"contributors":[{"url":"https://github.com/shvaikalesh","name":"Aleksej Shvajka"}],"dist":{"shasum":"bb5f4b05ccd2b309d45a222d4b3ed18b11dcf0ce","tarball":"https://registry.npmjs.org/toggle-selection/-/toggle-selection-1.0.1.tgz","integrity":"sha512-Napm+Ec9DdiPZa+rnUwAQnKYfxylZvDqCEuFEQBTMwKBqgSRcJOy/9+FeP2dOCDOzEle0X0dza7TuOp7MVdR2w==","signatures":[{"sig":"MEYCIQCOmV50mDdIZE3tfPSHjsS+wqBnuyop+WoxzKE6PADijgIhAPMc6WUg8NB/uA8mNaex8aARwqS7xLMfJaiIulULLMmA","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"bb5f4b05ccd2b309d45a222d4b3ed18b11dcf0ce","gitHead":"e2d13e4370e67b5320493bab1be9e2545c572bfa","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"sudodoki","email":"smd.deluzion@gmail.com"},"_npmVersion":"2.11.3","description":"Toggle current selected content in browser","_nodeVersion":"0.12.7","directories":{}},"1.0.2":{"name":"toggle-selection","version":"1.0.2","keywords":["selection","toggle","browser","deselect"],"author":{"url":"sudodoki.name","name":"sudodoki","email":"smd.deluzion@gmail.com"},"license":"MIT","_id":"toggle-selection@1.0.2","maintainers":[{"name":"sudodoki","email":"smd.deluzion@gmail.com"}],"contributors":[{"url":"https://github.com/shvaikalesh","name":"Aleksej Shvajka"}],"dist":{"shasum":"c5ecc6f21cd960a9e5c4e5e1d10eb4fc915413c2","tarball":"https://registry.npmjs.org/toggle-selection/-/toggle-selection-1.0.2.tgz","integrity":"sha512-/PctIzERPivpfcQOksEX1sAmnANa4pHSMs/z8v/XND23eSSthm7pI028npMxSaaplOUVvExchRea10eJmsfTpQ==","signatures":[{"sig":"MEUCIHDC0VvTupxFB007RKjRfRl3N3HtkPpJWh8vVV6GCX2TAiEAofgakq1JYQsgOT/m68slomd7DUe3Wy4TQzO8v42h00s=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"c5ecc6f21cd960a9e5c4e5e1d10eb4fc915413c2","gitHead":"7464dce4f04668b5f07f0648aaa858679dcdbc9b","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"sudodoki","email":"smd.deluzion@gmail.com"},"_npmVersion":"2.14.1","description":"Toggle current selected content in browser","_nodeVersion":"0.12.7","directories":{}},"1.0.3":{"name":"toggle-selection","version":"1.0.3","keywords":["selection","toggle","browser","deselect"],"author":{"url":"sudodoki.name","name":"sudodoki","email":"smd.deluzion@gmail.com"},"license":"MIT","_id":"toggle-selection@1.0.3","maintainers":[{"name":"sudodoki","email":"smd.deluzion@gmail.com"}],"contributors":[{"url":"https://github.com/shvaikalesh","name":"Aleksej Shvajka"}],"dist":{"shasum":"4b3113445d8b662226236f00941f92cb6bed093c","tarball":"https://registry.npmjs.org/toggle-selection/-/toggle-selection-1.0.3.tgz","integrity":"sha512-deKaNSYZmzgzjczy9mpZ3FKcVceDeHQNuZN6PlUmom34kBK2gBCSN/AhaLRDHDNSitevcypTsrDMT/blnCE3NA==","signatures":[{"sig":"MEQCIDRnBfeptIc9Weh3XqFVDgO2fyjSqZaMCkuGkk4NFXjCAiAZSve2KSAYFxNSdwUZbLLKlOBkRo8vzJuhz2VN6AXpCw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"4b3113445d8b662226236f00941f92cb6bed093c","gitHead":"6b2e03662f048ca7858e84fc73d533ce2e1e0136","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"sudodoki","email":"smd.deluzion@gmail.com"},"_npmVersion":"2.14.1","description":"Toggle current selected content in browser","_nodeVersion":"0.12.7","directories":{}},"1.0.4":{"name":"toggle-selection","version":"1.0.4","keywords":["selection","toggle","browser","deselect"],"author":{"url":"sudodoki.name","name":"sudodoki","email":"smd.deluzion@gmail.com"},"license":"MIT","_id":"toggle-selection@1.0.4","maintainers":[{"name":"sudodoki","email":"smd.deluzion@gmail.com"}],"contributors":[{"url":"https://github.com/shvaikalesh","name":"Aleksej Shvajka"}],"dist":{"shasum":"1ce8f6f2955ecc1143dcbb9a952af797dad1d9b1","tarball":"https://registry.npmjs.org/toggle-selection/-/toggle-selection-1.0.4.tgz","integrity":"sha512-Z9kU1DGhi0n0zVYoiHAHQKRKkIHPNEdlRN++urVJfHQzEJQo57FLvb20BTKqIS6T82/rswiz1lY9BetLuVdraw==","signatures":[{"sig":"MEUCIQC7NdVw12c3UPdNfOJfOKi0TwkuFYiqZh/lK0Y3VOCagwIgLBqSxS/7URN7x0a7UP1DNKCaBJkbwd1Y4jfyJWn2qwM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"1ce8f6f2955ecc1143dcbb9a952af797dad1d9b1","gitHead":"5622207c041799e253617b4a11ac660bebac2598","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"sudodoki","email":"smd.deluzion@gmail.com"},"_npmVersion":"3.3.5","description":"Toggle current selected content in browser","_nodeVersion":"0.12.7","directories":{}},"1.0.5":{"name":"toggle-selection","version":"1.0.5","keywords":["selection","toggle","browser","deselect"],"author":{"url":"sudodoki.name","name":"sudodoki","email":"smd.deluzion@gmail.com"},"license":"MIT","_id":"toggle-selection@1.0.5","maintainers":[{"name":"sudodoki","email":"smd.deluzion@gmail.com"}],"contributors":[{"url":"https://github.com/shvaikalesh","name":"Aleksej Shvajka"}],"dist":{"shasum":"726c703de607193a73c32c7df49cd24950fc574f","tarball":"https://registry.npmjs.org/toggle-selection/-/toggle-selection-1.0.5.tgz","integrity":"sha512-CDgR/FGV/ZPMbqTJzg/v3BkSkJjqgSjsy0Hfj8UO4SP3a6BAT+n1S2PNMYTxCmS0ScBPmxWh5+hxrtS7Gd6Egw==","signatures":[{"sig":"MEQCIH7JaALfVwLn3/gvxgdBalmINT8aiHScUaCYin95yZdSAiAI3y235Pn8eEsk0tsZnq3jGfHjVEPLH/uMw9iu2DEB7A==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"726c703de607193a73c32c7df49cd24950fc574f","gitHead":"b15f96b4f2a5dcd0cf801f3056d59cb2b6f1c7a3","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"sudodoki","email":"smd.deluzion@gmail.com"},"_npmVersion":"3.10.3","description":"Toggle current selected content in browser","_nodeVersion":"6.3.1","_npmOperationalInternal":{"tmp":"tmp/toggle-selection-1.0.5.tgz_1469565844835_0.009588070679455996","host":"packages-16-east.internal.npmjs.com"},"directories":{}},"1.0.6":{"name":"toggle-selection","version":"1.0.6","keywords":["selection","toggle","browser","deselect"],"author":{"url":"sudodoki.name","name":"sudodoki","email":"smd.deluzion@gmail.com"},"license":"MIT","_id":"toggle-selection@1.0.6","maintainers":[{"name":"sudodoki","email":"smd.deluzion@gmail.com"}],"contributors":[{"url":"https://github.com/shvaikalesh","name":"Aleksej Shvajka"}],"homepage":"https://github.com/sudodoki/toggle-selection#readme","bugs":{"url":"https://github.com/sudodoki/toggle-selection/issues"},"dist":{"shasum":"6e45b1263f2017fa0acc7d89d78b15b8bf77da32","tarball":"https://registry.npmjs.org/toggle-selection/-/toggle-selection-1.0.6.tgz","integrity":"sha512-BiZS+C1OS8g/q2RRbJmy59xpyghNBqrr6k5L/uKBGRsTfxmu3ffiRnd8mlGPUVayg8pvfi5urfnu8TU7DVOkLQ==","signatures":[{"sig":"MEQCIEoSpl++JM+0yPeNyXCySf0XQWwZsnEOWHvzVTBKU3GvAiBTrUTa7RZ8hv7fxULU7WoJIoFE5JCMeAL8uz4r8ZtFBA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"6e45b1263f2017fa0acc7d89d78b15b8bf77da32","gitHead":"466460c75ca40630d8de940490718247fce79a3e","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"sudodoki","email":"smd.deluzion@gmail.com"},"repository":{"url":"git+https://github.com/sudodoki/toggle-selection.git","type":"git"},"_npmVersion":"4.2.0","description":"Toggle current selected content in browser","_nodeVersion":"7.9.0","_npmOperationalInternal":{"tmp":"tmp/toggle-selection-1.0.6.tgz_1500922210905_0.8898821899201721","host":"s3://npm-registry-packages"},"directories":{}},"2.0.0":{"name":"toggle-selection","version":"2.0.0","keywords":["selection","toggle","browser","deselect"],"author":{"url":"sudodoki.name","name":"sudodoki","email":"smd.deluzion@gmail.com"},"license":"MIT","_id":"toggle-selection@2.0.0","maintainers":[{"name":"sudodoki","email":"smd.deluzion@gmail.com"}],"contributors":[{"url":"https://github.com/shvaikalesh","name":"Aleksej Shvajka"}],"homepage":"https://github.com/sudodoki/toggle-selection#readme","bugs":{"url":"https://github.com/sudodoki/toggle-selection/issues"},"dist":{"shasum":"be0d14bf0c6f83d0f2eff9beb96de1b57fe2c5dc","tarball":"https://registry.npmjs.org/toggle-selection/-/toggle-selection-2.0.0.tgz","fileCount":7,"integrity":"sha512-TenNf/L/TdZ/URjh4A3tRFZSDeu+dWXXMk4oQvTzwdklSTqLqwJcWxP1Cfor67ShGhZXVbN+VkwIlCOxDaz2Lg==","signatures":[{"sig":"MEUCICHeYSK+m44ljXbiCH7iNggTuRhwz+bAXpI1S2+AzKbGAiEA0L/mJ5f/1XxXkakLJYUZmCPkTvjgGIXKZQ8O7KPZM34=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":4824},"main":"index.js","type":"commonjs","module":"index.mjs","exports":{".":{"import":"./index.mjs","default":"./index.js","require":"./index.js"}},"gitHead":"44297fce3d630a42f6d40571c6bf1f5e9df9fd9c","scripts":{"test":"echo \"Error: no test specified\" && exit 1","check":"publint"},"_npmUser":{"name":"sudodoki","email":"smd.deluzion@gmail.com"},"repository":{"url":"git+https://github.com/sudodoki/toggle-selection.git","type":"git"},"_npmVersion":"11.11.0","description":"Toggle current selected content in browser","directories":{},"sideEffects":false,"_nodeVersion":"25.8.0","_hasShrinkwrap":false,"devDependencies":{"publint":"^0.3.18"},"_npmOperationalInternal":{"tmp":"tmp/toggle-selection_2.0.0_1775474029884_0.6725524628229447","host":"s3://npm-registry-packages-npm-production"}},"2.1.0":{"name":"toggle-selection","version":"2.1.0","description":"Toggle current selected content in browser","main":"index.js","module":"index.mjs","types":"index.d.ts","exports":{".":{"import":{"types":"./index.d.mts","default":"./index.mjs"},"require":{"types":"./index.d.ts","default":"./index.js"},"default":"./index.js"}},"type":"commonjs","sideEffects":false,"changelog":{"noAuthors":true},"repository":{"type":"git","url":"git+https://github.com/sudodoki/toggle-selection.git"},"scripts":{"changelog":"npx changelogen@0.6.2 --no-bump --output CHANGELOG.md","release:patch":"npx changelogen@0.6.2 --release --patch","release:minor":"npx changelogen@0.6.2 --release --minor","release:major":"npx changelogen@0.6.2 --release --major","check":"publint","preversion":"npm run check","test":"echo \"Error: no test specified\" && exit 1"},"devDependencies":{"publint":"^0.3.18"},"keywords":["selection","toggle","browser","deselect"],"author":{"name":"sudodoki","email":"smd.deluzion@gmail.com","url":"sudodoki.name"},"license":"MIT","contributors":[{"name":"Aleksej Shvajka","url":"https://github.com/shvaikalesh"}],"gitHead":"888650b271ee4937e2baff6a43bee744635601e3","_id":"toggle-selection@2.1.0","bugs":{"url":"https://github.com/sudodoki/toggle-selection/issues"},"homepage":"https://github.com/sudodoki/toggle-selection#readme","_nodeVersion":"25.8.0","_npmVersion":"11.11.0","dist":{"integrity":"sha512-1RrrNcayk2UvW+Vvg+AwF/tnzsRHcL+cSywC37kjiNpxldIOx1tFRZAjNo1jwplzj1B4JrseYicVOBxHtInNxw==","shasum":"0d5e39b87180e53ff444ee0bbf4acefa09877c6e","tarball":"https://registry.npmjs.org/toggle-selection/-/toggle-selection-2.1.0.tgz","fileCount":7,"unpackedSize":4184,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQCJj9FvhuiqNyZBVTCgVBwlj8K7hlj52MbFaZDsaJK4LgIgMacTwt2uta50RMLIJcYpPip8wRvKDqNwrq3IgM5FrkQ="}]},"_npmUser":{"name":"sudodoki","email":"smd.deluzion@gmail.com"},"directories":{},"maintainers":[{"name":"sudodoki","email":"smd.deluzion@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/toggle-selection_2.1.0_1777108079002_0.18363403223935215"},"_hasShrinkwrap":false}},"time":{"created":"2015-09-02T22:01:49.257Z","modified":"2026-04-25T09:07:59.561Z","1.0.0":"2015-09-02T22:01:49.257Z","1.0.1":"2015-09-02T22:06:49.819Z","1.0.2":"2015-09-02T22:51:04.339Z","1.0.3":"2015-09-02T23:20:27.097Z","1.0.4":"2015-10-10T06:46:20.281Z","1.0.5":"2016-07-26T20:44:07.158Z","1.0.6":"2017-07-24T18:50:13.231Z","2.0.0":"2026-04-06T11:13:50.027Z","2.1.0":"2026-04-25T09:07:59.153Z"},"bugs":{"url":"https://github.com/sudodoki/toggle-selection/issues"},"author":{"name":"sudodoki","email":"smd.deluzion@gmail.com","url":"sudodoki.name"},"license":"MIT","homepage":"https://github.com/sudodoki/toggle-selection#readme","keywords":["selection","toggle","browser","deselect"],"repository":{"type":"git","url":"git+https://github.com/sudodoki/toggle-selection.git"},"description":"Toggle current selected content in browser","contributors":[{"name":"Aleksej Shvajka","url":"https://github.com/shvaikalesh"}],"maintainers":[{"name":"sudodoki","email":"smd.deluzion@gmail.com"}],"readme":"# Toggle Selection\n\nSimple module exposing function that deselects current browser selection and returns function that restores selection.\n\n```\nvar deselect = require('toggle-selection');\nvar reselect = deselect(); // remove all selection\n// … \n// do something with current selection, text, etc;\n// …\nreselect(); // restore selection\n```\n\nAll credits go to [@shvaikalesh](https://github.com/shvaikalesh).\n\n# [Example](http://sudodoki.name/toggle-selection/example/)\n\n![example recording](http://g.recordit.co/YPu6mHvcKe.gif)\n","readmeFilename":"README.md","users":{"foto":true}}