{"id":20218259,"url":"https://github.com/cannercms/get-selection-range","last_synced_at":"2025-09-02T04:10:01.033Z","repository":{"id":113038264,"uuid":"129364313","full_name":"CannerCMS/get-selection-range","owner":"CannerCMS","description":"Get current cursor's selection range","archived":false,"fork":false,"pushed_at":"2018-04-13T08:15:52.000Z","size":75,"stargazers_count":1,"open_issues_count":5,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-09T06:57:55.824Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/CannerCMS.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-04-13T07:18:18.000Z","updated_at":"2022-09-25T15:31:34.000Z","dependencies_parsed_at":"2023-03-13T13:23:34.322Z","dependency_job_id":null,"html_url":"https://github.com/CannerCMS/get-selection-range","commit_stats":null,"previous_names":["canner/get-selection-range"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/CannerCMS/get-selection-range","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CannerCMS%2Fget-selection-range","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CannerCMS%2Fget-selection-range/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CannerCMS%2Fget-selection-range/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CannerCMS%2Fget-selection-range/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CannerCMS","download_url":"https://codeload.github.com/CannerCMS/get-selection-range/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CannerCMS%2Fget-selection-range/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273228190,"owners_count":25067746,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-02T02:00:09.530Z","response_time":77,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-14T06:37:46.329Z","updated_at":"2025-09-02T04:10:01.010Z","avatar_url":"https://github.com/CannerCMS.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# get-selection-range [![NPM version][npm-image]][npm-url]  [![Dependency Status][daviddm-image]][daviddm-url]\n\u003e Get cursor's selection range.\n\n## Installation\n\n```sh\n$ npm install --save get-selection-range\n```\n\n## Usage\n\n```js\nvar getSelectionRange = require('get-selection-range');\n\n// get visible selection range\ngetSelectionRange.getVisibleSelectionRect();\n\n// get collpase selection range\ngetSelectionRange.getCollapsedClientRect()\n```\n\n## License\n\nMIT © [chilijung]()\n\n\n[npm-image]: https://badge.fury.io/js/get-selection-range.svg\n[npm-url]: https://npmjs.org/package/get-selection-range\n[travis-image]: https://travis-ci.org/Canner/get-selection-range.svg?branch=master\n[travis-url]: https://travis-ci.org/Canner/get-selection-range\n[daviddm-image]: https://david-dm.org/Canner/get-selection-range.svg?theme=shields.io\n[daviddm-url]: https://david-dm.org/Canner/get-selection-range\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcannercms%2Fget-selection-range","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcannercms%2Fget-selection-range","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcannercms%2Fget-selection-range/lists"}