{"_id":"@alidev/text-select","_rev":"2-1f32b86cbaacb0efffcf21885131956a","name":"@alidev/text-select","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.0":{"name":"@alidev/text-select","version":"1.0.0","description":"A library to select any text on a web page without dependencies","main":"dist/index.js","module":"dist/index.es.js","browser":"dist/index.bundle.js","types":"dist/index.d.ts","scripts":{"build":"rollup -c && tsc","build:watch":"rollup -cw","test":"testcafe chrome tests/*test*","test:ci":"testcafe chrome:headless tests/*test*","verify":"npm run build && npm run test:ci"},"devDependencies":{"puppeteer":"^1.13.0","rollup":"^1.6.0","rollup-plugin-terser":"^4.0.4","rollup-plugin-typescript2":"^0.19.3","testcafe":"^1.1.0","typescript":"^3.3.3333"},"dependencies":{},"keywords":["NPM","select","text","TypeScript","JavaScript","E2E","text selection"],"author":{"name":"Ali Kamalizade"},"license":"MIT","bugs":{"url":"https://github.com/ali-kamalizade/text-select/issues"},"repository":{"type":"git","url":"git+https://github.com/ali-kamalizade/text-select.git"},"private":false,"gitHead":"a29ede55ca88c9839e195599caa84bd25ae8f39b","homepage":"https://github.com/ali-kamalizade/text-select#readme","_id":"@alidev/text-select@1.0.0","_npmVersion":"6.5.0","_nodeVersion":"8.15.0","_npmUser":{"name":"ali-dev","email":"alirak94@gmail.com"},"dist":{"integrity":"sha512-TWBfFFeAtwYeJW5MrkGzQLRTjqwWC57aQ0+O3xyEp0zt/Bo9m4IQpS779Vwi8pFmXjRMfSMWlsh37X7OcUzAEg==","shasum":"c410c9c2c81ae60fdbf138197591186d776aacaf","tarball":"https://registry.npmjs.org/@alidev/text-select/-/text-select-1.0.0.tgz","fileCount":6,"unpackedSize":7363,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJchUHoCRA9TVsSAnZWagAAZsUQAI4vIo6SNOHEV7JhhILZ\nEgKtvU+Mo1Tnh1BZt1VCUOsReGYCEcy1qTLrrMi/XktdNjYs2PetQf1/AWi+\n2vqE+P8FU7x3qI2f+4M/P6chXksB2lGqdrx4lhbnKVqyVce+cjjkibbY630S\n1tUwehEjtIQciRUX+yzwKcn8tCb7UZyA9xGYtx8tK/tR877X2X+1T90ivker\nlqhN2YXQ1vExehASP7n2PuaTKRSUSTryiuPepoF/hiJwCF4oOAxZM4mcFWFY\nx7P018XuezKU/HEfWIWWcGEAAKdX2fPrfxdMFwBTR/4nb9UtU9BkA4EkMLWW\njPWuUv4YR4oVr55zrg+g2llW2mzMv/iph4QnVuk0oX5Cxg/VAOQl14cfevlV\nwjDSypSa0xhaqMnD4kbr/qjwzzELDzAsx0tFJ+1Z4+YWUpujaMjoGw8TbKQk\nSzr65lR5dCa2cz5fPU+mKQxWnXoDeX+W54UVIMlKiEvdsrU4wrdxWAIiLv+P\n2FEHS/LUZau8MsSyM+WRE3CPuqy2ZrgeIcFdBGm8zPfmBWpNvDky/5RSxMn9\noPnHtRtJpMgREtNBbYmwpFjwhVIipb9aFzAQ8IRTy96BZAfBwNDt6D8TckNS\nxkOnm8bUkYM0rYWQSobEyeSfbVSPTs5L+fsbveQfjs1ANPsIovbJqOfwvPW0\nBEL9\r\n=CiMA\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCID0FxtrUiROfQz2oXAqh3fcotBBj8UqSZWOPuqFX+g5pAiEAg81PwxXowbole/fKAGtDL6hjVO2fOwz3Of1j5rMaF54="}]},"maintainers":[{"name":"ali-dev","email":"alirak94@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/text-select_1.0.0_1552237032068_0.9839407590530642"},"_hasShrinkwrap":false},"1.0.1":{"name":"@alidev/text-select","version":"1.0.1","description":"A library to select any text on a web page without dependencies","main":"dist/index.js","module":"dist/index.es.js","browser":"dist/index.bundle.js","types":"dist/index.d.ts","scripts":{"build":"rollup -c && tsc","build:watch":"rollup -cw","test":"testcafe chrome tests/*test*","test:ci":"testcafe chrome:headless tests/*test*","verify":"npm run build && npm run test:ci"},"devDependencies":{"puppeteer":"^1.13.0","rollup":"^1.6.0","rollup-plugin-terser":"^4.0.4","rollup-plugin-typescript2":"^0.19.3","testcafe":"^1.1.0","typescript":"^3.3.3333"},"dependencies":{},"keywords":["NPM","select","text","TypeScript","JavaScript","E2E","text selection"],"author":{"name":"Ali Kamalizade"},"license":"MIT","bugs":{"url":"https://github.com/ali-kamalizade/text-select/issues"},"repository":{"type":"git","url":"git+https://github.com/ali-kamalizade/text-select.git"},"private":false,"gitHead":"fc9200ab3f4129612e9a27c317ffd5226254a6d0","homepage":"https://github.com/ali-kamalizade/text-select#readme","_id":"@alidev/text-select@1.0.1","_npmVersion":"6.5.0","_nodeVersion":"8.15.0","_npmUser":{"name":"ali-dev","email":"alirak94@gmail.com"},"dist":{"integrity":"sha512-qmsb0I6iGsR+TRogfgShaBF3AYXnItdhVFTXUo3p6eAlozHlBPt0wfeAQ+RL5mDv0tnq7191kY8ran3/+RDFbg==","shasum":"4b2b909ff7905861a69f94966c1b8117cb019468","tarball":"https://registry.npmjs.org/@alidev/text-select/-/text-select-1.0.1.tgz","fileCount":7,"unpackedSize":8592,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJchXCaCRA9TVsSAnZWagAAZg8P/iRDYPkk+egIGzjSyCe7\nZeZdg59zP6hcKp6xFkUEK8gv0NK8ocYAkokwBSTW+LtzQcubta6AJm53wvAc\ndnBvtmODbCDk9Y+n9HZTFop1fIf4Ss++LZaSFELveJDgACeRoFgi+CQBqqiL\nDvMmdWcS4jwNwxVx7bhFiYZYJu6PkZA5DTh1c7d4tqTIeYwcN5Kepl8aXRPd\nGiPnRlV2cw0T0XWSEyJrfLYUKL2MuFUnsxbtVYrBBsOzqZ7h1qILSg8eiODm\nIjHJNv3TE3ie9a9sF6s8oo4p+hnR1jnt2e+LXxobLTGXzWGDexXNlXaFKTCi\nllo6KBv0TFbP1SidNgiIZxUu6MovJ/ZaYUTFgVz1HAbcaPr654GJEVoZf+/L\n1DYRfWk4MH36OcuymC1f/Ub0/5RuQLfJU0BBge0+S3jhqx8YykxPRkckvP4B\nsCN7bHK9+ZbivQZCJshR1ELmrML4Grfw8OOY6IvndNvEg6yQCBw+d49SXri3\nP1H1VT0cG8qrhsTl6+9Bm3qCrqXhyQ791pMojQNyu57kE8f7oRxTkgyFK89d\nHh/iXTQu0okjFiNMQyoKRTe+et7C7m/PRiGbJLlOPNPfXG6GJsg40KJeQYsx\nUItXPXovrmMKgvkL13mkyBMenvD8gqxMZmXXaj6YG45btmWbGg6p6sajlGVL\ndNpA\r\n=r9nI\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICIUkZgSUD/h0fYmCMdGbto1N4nb5+oQ5p8dUJnHZ71nAiEA8jPP10fttQYxu377jlBdG/qODwGLWctJa9GRF7DAm/s="}]},"maintainers":[{"name":"ali-dev","email":"alirak94@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/text-select_1.0.1_1552248985443_0.9390101185609865"},"_hasShrinkwrap":false}},"time":{"created":"2019-03-10T16:57:11.887Z","1.0.0":"2019-03-10T16:57:12.213Z","modified":"2022-04-04T12:59:08.938Z","1.0.1":"2019-03-10T20:16:25.567Z"},"maintainers":[{"name":"ali-dev","email":"alirak94@gmail.com"}],"description":"A library to select any text on a web page without dependencies","homepage":"https://github.com/ali-kamalizade/text-select#readme","keywords":["NPM","select","text","TypeScript","JavaScript","E2E","text selection"],"repository":{"type":"git","url":"git+https://github.com/ali-kamalizade/text-select.git"},"author":{"name":"Ali Kamalizade"},"bugs":{"url":"https://github.com/ali-kamalizade/text-select/issues"},"license":"MIT","readme":"# text-select\r\n\r\n[![npm version](https://badge.fury.io/js/%40alidev%2Ftext-select.svg)](https://badge.fury.io/js/%40alidev%2Ftext-select)\r\n[![Build Status](https://travis-ci.org/ali-kamalizade/text-select.svg?branch=master)](https://travis-ci.org/ali-kamalizade/text-select)\r\n\r\n`text-select` is a tiny library to select text on web page.\r\nCompared to other solutions, `text-select` can not only select text of HTML elements but you can also select a substring.\r\n`text-select` can also be used in end-to-end tests (e.g. using Protractor or TestCafe) to select text during tests.\r\n\r\n## Features\r\n- Works in browsers and NPM-based projects (e.g. React applications)\r\n- Select whole text of an element or just select part of it\r\n- TypeScript support (e.g. handy for Angular projects)\r\n- Can be used in end-to-end tests\r\n- Tiny size (~1 KB)\r\n\r\n## Installation\r\n- If you are using NPM: ```npm install @alidev/text-select```\r\n- You can also include the script directly. Just download the script from the [dist folder](https://github.com/ali-kamalizade/text-select/tree/master/dist).\r\n\r\n## Get started\r\n- Usage in NPM:\r\n```javascript\r\nimport {selectElementText, selectText} from '@alidev/text-select/dist';\r\n\r\nselectElementText(document.getElementById('intro-header'));\r\n```\r\n- Usage in the browser:\r\n```javascript\r\n<script src=\"text-select.bundle.js\"></script>\r\n\r\nTextSelect.selectElementText(document.getElementById('intro-header'));\r\n```\r\n\r\n## Compatibility:\r\n- Every decent web browser (Chrome, Firefox, Safari, Opera, Microsoft Edge, IE11)\r\n\r\n## Examples\r\n- See the demo.html file for a simple example.\r\n\r\n## Local development setup\r\n1. Download the repository.\r\n2. Get Node.js and install it if you haven't already.\r\n3. Use ```npm install``` to install the necessary dependencies.\r\n4. The source code is written in TypeScript in the `src` directory.\r\n5. Run ```npm run build``` to build the library.\r\n6. Run ```npm test``` to run the e2e tests.\r\n\r\n## Contribution\r\nPull requests and feature requests are welcome!\r\n","readmeFilename":"README.md"}