{"id":13508473,"url":"https://github.com/brrd/electron-is-accelerator","last_synced_at":"2025-04-15T18:41:13.823Z","repository":{"id":57221713,"uuid":"71996163","full_name":"brrd/electron-is-accelerator","owner":"brrd","description":"Check if a string is a valid Electron accelerator","archived":false,"fork":false,"pushed_at":"2020-04-30T06:20:02.000Z","size":8,"stargazers_count":16,"open_issues_count":1,"forks_count":4,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-28T23:43:49.610Z","etag":null,"topics":["accelerator","electron"],"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/brrd.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}},"created_at":"2016-10-26T11:22:27.000Z","updated_at":"2023-07-03T23:37:06.000Z","dependencies_parsed_at":"2022-08-29T02:12:53.552Z","dependency_job_id":null,"html_url":"https://github.com/brrd/electron-is-accelerator","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brrd%2Felectron-is-accelerator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brrd%2Felectron-is-accelerator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brrd%2Felectron-is-accelerator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brrd%2Felectron-is-accelerator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/brrd","download_url":"https://codeload.github.com/brrd/electron-is-accelerator/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248670437,"owners_count":21142904,"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","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":["accelerator","electron"],"created_at":"2024-08-01T02:00:53.493Z","updated_at":"2025-04-15T18:41:13.789Z","avatar_url":"https://github.com/brrd.png","language":"JavaScript","readme":"# electron-is-accelerator\n\nCheck if a string is a valid [Electron accelerator](https://github.com/electron/electron/blob/master/docs/api/accelerator.md) and return a boolean. This module can be used to validate user defined accelerators before using them with [MenuItems](http://electron.atom.io/docs/api/menu-item/).\n\n## Installation\n\n```\n$ npm install --save electron-is-accelerator\n```\n\n## Usage\n\n```javascript\nvar isAccelerator = require(\"electron-is-accelerator\");\n\nisAccelerator(\"CommandOrControl+Shift+Z\"); // true\nisAccelerator(\"CommandOrControl+F9\"); // true\nisAccelerator(\"CommandOrContrl+F9\"); // false\nisAccelerator(\"A+Z\"); // false\n```\n\n## License\n\nThe MIT License (MIT)\nCopyright (c) 2016 Thomas Brouard\n","funding_links":[],"categories":["JavaScript","Library","Tools"],"sub_categories":["Check/Detect","For Electron"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrrd%2Felectron-is-accelerator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbrrd%2Felectron-is-accelerator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrrd%2Felectron-is-accelerator/lists"}