{"id":15719303,"url":"https://github.com/exelban/cursor-position","last_synced_at":"2026-02-14T00:48:25.616Z","repository":{"id":71391154,"uuid":"137412380","full_name":"exelban/cursor-position","owner":"exelban","description":"Simple module for getting click/touch position in element or window.","archived":false,"fork":false,"pushed_at":"2019-01-16T18:10:20.000Z","size":21,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-10-02T06:53:13.287Z","etag":null,"topics":["browser","cursor","detect","div","get","mobile","module","mouse","movement","pointer","position","touch","wev","window"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/exelban.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-06-14T21:43:18.000Z","updated_at":"2025-01-28T14:29:00.000Z","dependencies_parsed_at":"2023-04-06T05:33:29.755Z","dependency_job_id":null,"html_url":"https://github.com/exelban/cursor-position","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/exelban/cursor-position","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/exelban%2Fcursor-position","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/exelban%2Fcursor-position/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/exelban%2Fcursor-position/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/exelban%2Fcursor-position/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/exelban","download_url":"https://codeload.github.com/exelban/cursor-position/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/exelban%2Fcursor-position/sbom","scorecard":{"id":387793,"data":{"date":"2025-08-11","repo":{"name":"github.com/exelban/cursor-position","commit":"fb9ce9865f5adb7c111772303781cbe877b18793"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Code-Review","score":0,"reason":"Found 0/12 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: Apache License 2.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 8 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-18T17:05:31.522Z","repository_id":71391154,"created_at":"2025-08-18T17:05:31.522Z","updated_at":"2025-08-18T17:05:31.522Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29427269,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-13T22:20:51.549Z","status":"ssl_error","status_checked_at":"2026-02-13T22:20:49.838Z","response_time":78,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["browser","cursor","detect","div","get","mobile","module","mouse","movement","pointer","position","touch","wev","window"],"created_at":"2024-10-03T21:55:18.056Z","updated_at":"2026-02-14T00:48:25.578Z","avatar_url":"https://github.com/exelban.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cursor-position\n\n\n[![Download Count](https://img.shields.io/npm/dt/cursor-position.svg?style=flat-square)](http://www.npmjs.com/package/cursor-position)\n\n[![Demo image](https://s3.eu-central-1.amazonaws.com/serhiy/Github_repo/cursor-position/cursor-position.png)](https://exelban.github.io/cursor-position)\n\nSimple module for getting click/touch position in element or window.\n\n\n## Install\n```sh\nyarn add cursor-position\n```  \nOr with npm:  \n```sh\nnpm install cursor-position --save\n```\n\n## Usage\nLibrary has only one function: ```GetCursorPosition(options)```\n```js\nimport GetCursorPosition from 'cursor-position'\n\ndocument.setEventListener('mousemove', () =\u003e {\n  const {x, y} = GetCursorPosition()\n  console.log(x, y)\n})\n```\n\n### Options\n```\n{\n    event?: MouseEvent | TouchEvent\n    absolute?: boolean\n    scroll?: boolean\n}\n```\n**Name** | **Type** | **Required** | **Default** | **Description**\n--- | --- | --- | --- | ---\n**event** | MouseEvent TouchEvent | No | window.event | Click event\n**absolute** | Boolean | No | true | Determine if position must be calculated from body or from parent element\n**scroll** | Boolean | No | false | Determine if position must include scroll value\n\n### Response\n```\n{\n  x number\n  y number\n}\n```\n\n## What's new\n### v1.0.1\n    - package.json fixed\n    \n### v1.0.0 (BREAKING CHANGES)\n    - rewrited library in typescript\n    - removed eslint\n    - removed @flow\n    - changed options\n    - added some tests (in progress)\n    \n### v0.0.3\n    - first release\n\n## License\n[Apache License 2.0](https://github.com/exelban/cursor-position/blob/master/LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fexelban%2Fcursor-position","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fexelban%2Fcursor-position","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fexelban%2Fcursor-position/lists"}