{"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":"http://registry-npm.ywwl.com/toggle-selection/download/toggle-selection-2.1.0.tgz","fileCount":7,"unpackedSize":4184,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQCJj9FvhuiqNyZBVTCgVBwlj8K7hlj52MbFaZDsaJK4LgIgMacTwt2uta50RMLIJcYpPip8wRvKDqNwrq3IgM5FrkQ="}],"size":2126,"noattachment":false,"key":"/toggle-selection/-/toggle-selection-2.1.0.tgz"},"_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,"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":1777108079153,"_cnpm_publish_time":1777108079153,"dist-tags":{"latest":"2.1.0"}}