{"id":18669957,"url":"https://github.com/blahah/choo-kanye","last_synced_at":"2025-04-12T00:31:05.566Z","repository":{"id":57198211,"uuid":"96051267","full_name":"blahah/choo-kanye","owner":"blahah","description":"kanye (w)rapper for choo - easily add keyboard shortcuts to your choo app :steam_locomotive::train::train: + :train::notes::microphone:","archived":false,"fork":false,"pushed_at":"2017-07-02T23:22:40.000Z","size":366,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-30T11:33:06.943Z","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":"cc0-1.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/blahah.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-07-02T22:01:10.000Z","updated_at":"2018-08-22T23:31:53.000Z","dependencies_parsed_at":"2022-09-16T13:10:53.706Z","dependency_job_id":null,"html_url":"https://github.com/blahah/choo-kanye","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blahah%2Fchoo-kanye","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blahah%2Fchoo-kanye/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blahah%2Fchoo-kanye/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blahah%2Fchoo-kanye/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/blahah","download_url":"https://codeload.github.com/blahah/choo-kanye/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248163027,"owners_count":21057860,"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-11-07T08:49:19.967Z","updated_at":"2025-04-12T00:31:05.286Z","avatar_url":"https://github.com/blahah.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"---\n\n\u003cdiv align=\"center\"\u003e\n  \u003ch1\u003echoo-kanye\u003c/h1\u003e\n  \u003ch2\u003eeasily add \u003ca href=\"https://github.com/bevacqua/kanye\"\u003ekanye\u003c/a\u003e keyboard shortcuts to your choo app\u003c/h2\u003e\n  \u003cdiv align=\"center\"\u003e\n    \u003cimg src=\"https://github.com/blahah/choo-kanye/raw/master/assets/the-best.gif\" /\u003e\n  \u003c/div\u003e\n  \u003cp\u003e\n    \u003ca href=\"https://npmjs.com/packages/choo-kanye\" alt=\"npm package\"\u003e\n      \u003cimg src=\"https://img.shields.io/npm/v/choo-kanye.svg?style=flat-square\"\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://github.com/blahah/choo-kanye/blob/master/LICENSE\" alt=\"CC0 public domain\"\u003e\n      \u003cimg src=\"https://img.shields.io/badge/license-CC0-ff69b4.svg?style=flat-square\"\u003e\n    \u003c/a\u003e\n  \u003c/p\u003e\n\u003c/div\u003e\n\n---\n\n## Install\n\n```\nnpm install --save choo-kanye\n```\n\n## Usage\n\n### API\n\nThis module implements the [`kanye` API](https://github.com/bevacqua/kanye) using `choo` events.\n\nAny `kanye` events received before the DOM is loaded are buffered until they can be registered.\n\nEvents `choo-kanye` listens to:\n\n- `kanye:on` args: `combo, options?, listener`\n  - see ['kanye.on'](https://github.com/bevacqua/kanye#kanyeoncombo-options-listener)\n- `kanye:off` args: `combo, options?, listener`\n  - see ['kanye.off'](https://github.com/bevacqua/kanye#kanyeoffcombo-options-listener)\n- `kanye.clear` args: `context?`\n  - see ['kanye.clear'](https://github.com/bevacqua/kanye#kanyeclearcontext)\n\n\n### Example\n\n``` js\nvar app = require('choo')\n\nchoo.use(require('choo-kanye'))\n\nchoo.use(function(state, bus) {\n  var sayhi = function () {\n    console.log('hi!')\n  }\n  // run sayhi when the user presses ctrl+shift+a while element with id 'main' is the target\n  bus.emit('kanye:on', 'ctrl+shift+a', { filter: '#main' }, sayhi)\n})\n```\n\n## License\n\nTo the extent possible by law, we transfer any rights we have in this code to the public domain. Specifically, we do so using the [CC0 1.0 Universal Public Domain Dedication](https://creativecommons.org/publicdomain/zero/1.0/).\n\nYou can do whatever you want with this code. No need to credit us, link to us, include any license, or anything else. But if you want to do those things, you're free to do that too.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblahah%2Fchoo-kanye","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fblahah%2Fchoo-kanye","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblahah%2Fchoo-kanye/lists"}