{"id":16549582,"url":"https://github.com/uiur/with-modifier-key","last_synced_at":"2025-08-02T14:08:08.217Z","repository":{"id":35105843,"uuid":"39284244","full_name":"uiur/with-modifier-key","owner":"uiur","description":"Detect some modifier keys are pressed","archived":false,"fork":false,"pushed_at":"2015-07-21T02:41:33.000Z","size":128,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-16T07:50:20.199Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/uiur.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-07-18T02:51:05.000Z","updated_at":"2017-01-11T07:34:59.000Z","dependencies_parsed_at":"2022-08-18T01:40:28.010Z","dependency_job_id":null,"html_url":"https://github.com/uiur/with-modifier-key","commit_stats":null,"previous_names":["uiureo/with-modifier-key"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/uiur/with-modifier-key","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uiur%2Fwith-modifier-key","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uiur%2Fwith-modifier-key/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uiur%2Fwith-modifier-key/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uiur%2Fwith-modifier-key/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/uiur","download_url":"https://codeload.github.com/uiur/with-modifier-key/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uiur%2Fwith-modifier-key/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268401594,"owners_count":24244464,"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-08-02T02:00:12.353Z","response_time":74,"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-10-11T19:29:56.523Z","updated_at":"2025-08-02T14:08:08.167Z","avatar_url":"https://github.com/uiur.png","language":"JavaScript","readme":"# with-modifier-key\n[![Build Status](https://travis-ci.org/uiureo/with-modifier-key.svg)](https://travis-ci.org/uiureo/with-modifier-key)\n\nDetect some modifier keys are pressed.\n\nFor example, you can use this to detect an user is going to open a link in new tab or window. \n\n``` javascript\nvar withModifierKey = require('with-modifier-key')\n\nelement.addEventListener('click', function (event) {\n  if (withModifierKey(event)) {\n    // yay\n  }\n})\n```\n\n## Install\n\n```\nnpm install with-modifier-key\n```\n\n## License\nMIT\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuiur%2Fwith-modifier-key","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fuiur%2Fwith-modifier-key","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuiur%2Fwith-modifier-key/lists"}