{"id":17736621,"url":"https://github.com/parro-it/keyboardevents-areequal","last_synced_at":"2025-03-14T14:30:51.316Z","repository":{"id":60775068,"uuid":"95805083","full_name":"parro-it/keyboardevents-areequal","owner":"parro-it","description":"Check if two keyboardevents objects are equals.","archived":false,"fork":false,"pushed_at":"2017-08-07T13:56:22.000Z","size":168,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-11T07:45:27.648Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/parro-it.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":"2017-06-29T17:59:42.000Z","updated_at":"2019-07-08T22:01:57.000Z","dependencies_parsed_at":"2022-10-04T16:16:28.238Z","dependency_job_id":null,"html_url":"https://github.com/parro-it/keyboardevents-areequal","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parro-it%2Fkeyboardevents-areequal","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parro-it%2Fkeyboardevents-areequal/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parro-it%2Fkeyboardevents-areequal/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/parro-it%2Fkeyboardevents-areequal/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/parro-it","download_url":"https://codeload.github.com/parro-it/keyboardevents-areequal/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243593260,"owners_count":20316156,"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":[],"created_at":"2024-10-26T00:23:45.603Z","updated_at":"2025-03-14T14:30:51.016Z","avatar_url":"https://github.com/parro-it.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# keyboardevents-areequal\n\n[![Travis Build Status](https://img.shields.io/travis/parro-it/keyboardevents-areequal/master.svg)](http://travis-ci.org/parro-it/keyboardevents-areequal)\n[![NPM downloads](https://img.shields.io/npm/dt/keyboardevents-areequal.svg)](https://npmjs.org/package/keyboardevents-areequal)\n\n\u003e Check if two keyboardevents objects are equals.\n\nThis module is part of an ongoing effort to make [electron-localshortcut](https://github.com/parro-it/electron-localshortcut) less error prone, using keyboard DOM listener instead of 'globalShortcut' method to trigger shortcuts handlers.\n\n## Usage\n\nThis example check if various KeyboardEvent objects represents the same event:\n\n```js\nconst areEqual = require('keyboardevents-areequal');\n\nconsole.log(areEqual({ctrlKey: true, code: 'f'}, {ctrlKey: true, code: 'f'}));\n// true\n\nconsole.log(areEqual({code: 'f'}, {ctrlKey: true, code: 'f'}));\n// false\n```\n\n\n## API\n\n## Install\n\nWith [npm](https://npmjs.org/) installed, run\n\n```bash\nnpm install --save keyboardevents-areequal\n```\n\n## See Also\n\n- [`noffle/common-readme`](https://github.com/noffle/common-readme)\n\n## License\n\nMIT\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fparro-it%2Fkeyboardevents-areequal","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fparro-it%2Fkeyboardevents-areequal","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fparro-it%2Fkeyboardevents-areequal/lists"}