{"id":19064256,"url":"https://github.com/colmugx/cheatshooter","last_synced_at":"2026-05-14T20:30:16.515Z","repository":{"id":215133947,"uuid":"732986135","full_name":"colmugx/cheatshooter","owner":"colmugx","description":"a cheat code shooter, and also refer to it as `konami code`","archived":false,"fork":false,"pushed_at":"2024-09-27T08:00:53.000Z","size":246,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-02T13:47:32.546Z","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/colmugx.png","metadata":{"files":{"readme":"README-ja.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-12-18T10:02:57.000Z","updated_at":"2024-09-27T08:00:54.000Z","dependencies_parsed_at":"2024-11-09T00:42:09.552Z","dependency_job_id":"cba33693-fabf-44b4-8dc8-024f9ebfa578","html_url":"https://github.com/colmugx/cheatshooter","commit_stats":null,"previous_names":["colmugx/cheatshooter"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/colmugx%2Fcheatshooter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/colmugx%2Fcheatshooter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/colmugx%2Fcheatshooter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/colmugx%2Fcheatshooter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/colmugx","download_url":"https://codeload.github.com/colmugx/cheatshooter/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240118330,"owners_count":19750471,"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-09T00:41:57.019Z","updated_at":"2026-05-14T20:30:14.433Z","avatar_url":"https://github.com/colmugx.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cheatshooter\nまた「コナミコード」とも呼ばれます\n\n[![License](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)\n[![GitHub issues](https://img.shields.io/github/issues/colmugx/cheatshooter)](https://github.com/colmugx/cheatshooter/issues)\n[![GitHub stars](https://img.shields.io/github/stars/colmugx/cheatshooter)](https://github.com/colmugx/cheatshooter/stargazers)\n\n## Getting Started\n\n### インストール\n\n```bash\npnpm add cheatcode-shooter\n```\n\n### 使用法\n\n```typescript\n// ところで、最初はcheat-shooterと呼ばれていましたが、npmは`cheat`の使用を許可しませんでした。\nimport { CheatShooter } from 'cheatcode-shooter';\n\nconst actions = {\n  'konami': () =\u003e {\n    // コナミコードのアクション\n    console.log('konami');\n  },\n  // 必要に応じて他のアクションを追加\n};\n\nconst cheatShooter = new CheatShooter(actions);\n\ncheatShooter.on('command', (commandInfo: Output) =\u003e {\n  if (commandInfo) {\n    console.log(`コマンドが検出されました：${commandInfo.input}`);\n  } else {\n    console.log('無効なコマンド');\n  }\n});\n\n// 利用可能なコマンドにアクセス\nconsole.log('利用可能なコマンド:', cheatShooter.commands);\n\n// CheatShooter が不要になったら破棄する\ncheatShooter.destroy();\n```\n\n## API\n### CheatShooter\n\n```typescript\ninterface Output {\n  step: number;\n  input: string;\n  guesses: string[];\n}\n```\n\n`new CheatShooter(actions: Record\u003cstring, Action\u003e): CheatShooter`\n\u003e 指定されたアクションで新しい CheatShooter インスタンスを作成します。\n\n`destroy(): void`\n\u003e CheatShooter が不要になったときにイベントリスナーを削除し、リソースをクリーンアップします。\n\n`on(event: EventType, callback: EventCallback): Function`\n\u003e コマンドが検出されたときに呼び出されるコールバック関数を登録します。リスナーを削除する関数が返されます。\n\n`commands: string[]`\n\u003e 利用可能なチートコマンドの配列。\n\n## ライセンス\n\nこのプロジェクトは `MIT` ライセンスの下でライセンスされています、詳細については [LICENSE](LICENSE) ファイルを参照してください\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcolmugx%2Fcheatshooter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcolmugx%2Fcheatshooter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcolmugx%2Fcheatshooter/lists"}