{"id":18286365,"url":"https://github.com/sidp/konami-code","last_synced_at":"2025-04-09T06:24:47.134Z","repository":{"id":33175915,"uuid":"36817071","full_name":"sidp/konami-code","owner":"sidp","description":"Small Javascript library to call functions when the user enters the Konami Code.","archived":false,"fork":false,"pushed_at":"2023-01-04T01:16:25.000Z","size":279,"stargazers_count":0,"open_issues_count":12,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-15T00:45:39.598Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/sidp.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":"2015-06-03T16:45:42.000Z","updated_at":"2021-09-30T01:29:30.000Z","dependencies_parsed_at":"2023-01-14T23:47:22.529Z","dependency_job_id":null,"html_url":"https://github.com/sidp/konami-code","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/sidp%2Fkonami-code","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sidp%2Fkonami-code/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sidp%2Fkonami-code/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sidp%2Fkonami-code/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sidp","download_url":"https://codeload.github.com/sidp/konami-code/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247988952,"owners_count":21029196,"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-05T13:19:54.717Z","updated_at":"2025-04-09T06:24:47.109Z","avatar_url":"https://github.com/sidp.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# konami-code\n\n![Build status](https://circleci.com/gh/sidp/konami-code.svg?style=shield\u0026circle-token=60f119a2a516a777d99653c82df8c0cf7403cd52)\n\nThis is a small Javascript library to call functions when the user enters the Konami Code.\n\n\u003e ↑ ↑ ↓ ↓ ← → ← → B A\n\n## Usage\n\nInstall the package from npm:\n\n```sh\nnpm install @sidp/konami-code\n```\n\nImport the package into your project. Add a function by passing it as an argument to the konamiCode function.\n\n```js\nimport konamiCode from '@sidp/konami-code';\n\nkonamiCode(() =\u003e {\n  /* do stuff */\n});\n```\n\nIf you want to remove the listener, call the remove() function on the returned object, or on `this` in the callback function:\n\n```js\nconst kc = konamiCode(() =\u003e {\n  /* do stuff */\n});\nkc.remove();\n\n// - or -\n\nkonamiCode(function() {\n  /* do stuff */\n  this.remove();\n});\n```\n\n## Browser support\n\nThis library supports all modern browsers, including Internet Explorer 9 and better.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsidp%2Fkonami-code","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsidp%2Fkonami-code","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsidp%2Fkonami-code/lists"}