{"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":"http://registry-npm.ywwl.com/toggle-selection/download/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,"size":2531,"noattachment":false,"key":"/toggle-selection/-/toggle-selection-2.0.0.tgz"},"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"},"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","publish_time":1775474030027,"_cnpm_publish_time":1775474030027,"dist-tags":{"latest":"2.1.0"}}