{ "manifest": { "name": "toggle-selection", "version": "1.0.6", "description": "Toggle current selected content in browser", "main": "index.js", "repository": { "type": "git", "url": "git+https://github.com/sudodoki/toggle-selection" }, "scripts": { "test": "echo \"Error: no test specified\" && exit 1" }, "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" } ], "_registry": "npm", "_loc": "/home/josie/.cache/yarn/v6/npm-toggle-selection-1.0.6-integrity/node_modules/toggle-selection/package.json", "readmeFilename": "README.md", "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](https://github.com/sudodoki/toggle-selection/blob/master/example)\n\n![example recording](http://g.recordit.co/YPu6mHvcKe.gif)\n" }, "artifacts": [], "remote": { "resolved": "https://registry.npmjs.org/toggle-selection/-/toggle-selection-1.0.6.tgz", "type": "tarball", "reference": "https://registry.npmjs.org/toggle-selection/-/toggle-selection-1.0.6.tgz", "hash": "", "integrity": "sha512-BiZS+C1OS8g/q2RRbJmy59xpyghNBqrr6k5L/uKBGRsTfxmu3ffiRnd8mlGPUVayg8pvfi5urfnu8TU7DVOkLQ==", "registry": "npm", "packageName": "toggle-selection", "cacheIntegrity": "sha512-BiZS+C1OS8g/q2RRbJmy59xpyghNBqrr6k5L/uKBGRsTfxmu3ffiRnd8mlGPUVayg8pvfi5urfnu8TU7DVOkLQ== sha1-bkWxJj8gF/oKzH2J14sVuL932jI=" }, "registry": "npm", "hash": "062652f82d4e4bc83fab64516c99b2e7dc69ca084d06aaebea4e4bfee281191b137f19aeddf7e246777c9a518f5156b283ca6f7e2e6eadf9eef1353b0d53a42d" }