{ "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-6e45b1263f2017fa0acc7d89d78b15b8bf77da32-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.yarnpkg.com/toggle-selection/-/toggle-selection-1.0.6.tgz#6e45b1263f2017fa0acc7d89d78b15b8bf77da32", "type": "tarball", "reference": "https://registry.yarnpkg.com/toggle-selection/-/toggle-selection-1.0.6.tgz", "hash": "6e45b1263f2017fa0acc7d89d78b15b8bf77da32", "integrity": "sha512-BiZS+C1OS8g/q2RRbJmy59xpyghNBqrr6k5L/uKBGRsTfxmu3ffiRnd8mlGPUVayg8pvfi5urfnu8TU7DVOkLQ==", "registry": "npm", "packageName": "toggle-selection", "cacheIntegrity": "sha512-BiZS+C1OS8g/q2RRbJmy59xpyghNBqrr6k5L/uKBGRsTfxmu3ffiRnd8mlGPUVayg8pvfi5urfnu8TU7DVOkLQ== sha1-bkWxJj8gF/oKzH2J14sVuL932jI=" }, "registry": "npm", "hash": "6e45b1263f2017fa0acc7d89d78b15b8bf77da32" }