{"id":23582474,"url":"https://github.com/fork/vue-mousetrap","last_synced_at":"2025-05-06T23:44:26.107Z","repository":{"id":55806104,"uuid":"219785650","full_name":"fork/vue-mousetrap","owner":"fork","description":"Mousetrap directive for Vue","archived":false,"fork":false,"pushed_at":"2024-06-27T19:26:26.000Z","size":11,"stargazers_count":2,"open_issues_count":2,"forks_count":1,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-04-20T00:48:15.554Z","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/fork.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2019-11-05T16:00:15.000Z","updated_at":"2024-01-04T09:50:05.000Z","dependencies_parsed_at":"2024-12-27T01:11:49.277Z","dependency_job_id":"c9ef8e56-dcef-4749-a34b-f00ce6f2097a","html_url":"https://github.com/fork/vue-mousetrap","commit_stats":{"total_commits":2,"total_committers":1,"mean_commits":2.0,"dds":0.0,"last_synced_commit":"5601ce98c6a497592fe8fdfe1e38f0661fd7714d"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fork%2Fvue-mousetrap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fork%2Fvue-mousetrap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fork%2Fvue-mousetrap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fork%2Fvue-mousetrap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fork","download_url":"https://codeload.github.com/fork/vue-mousetrap/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252788404,"owners_count":21804280,"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-12-27T01:11:43.297Z","updated_at":"2025-05-06T23:44:26.086Z","avatar_url":"https://github.com/fork.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# `@4rk/vue-mousetrap`\n\nA Vue plugin providing a directive to add global keyboard shortcuts to your components based on [Mousetrap](https://craig.is/killing/mice).\n\n## Installation\n\n```javascript\nimport VueMousetrap from \"@4rk/vue-mousetrap\";\n\nVue.use(VueMousetrap);\n```\n\n## Usage\n\n```vue\n\u003ctemplate\u003e\n  \u003cdiv v-mousetrap=\"['mod+s']\" @mousetrap=\"onMousetrap\"\u003e\n    hit ctrl-s to save\n  \u003c/div\u003e\n\u003c/template\u003e\n\n\u003cscript\u003e\nexport default {\n  methods: {\n    onMousetrap() {\n      console.log(\"save!\");\n    }\n  }\n};\n\u003c/script\u003e\n```\n\n## API\n\nThe `v-mousetrap` directive expects a Moustrap compatible value as defined at [Mousetrap.bind](https://craig.is/killing/mice#api.bind).\n\nThe `@mousetrap` event triggers with the Mousetrap event.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffork%2Fvue-mousetrap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffork%2Fvue-mousetrap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffork%2Fvue-mousetrap/lists"}