{"id":13632996,"url":"https://github.com/sunneydev/lcu-events","last_synced_at":"2026-03-11T01:36:30.540Z","repository":{"id":89572026,"uuid":"377431427","full_name":"sunneydev/lcu-events","owner":"sunneydev","description":null,"archived":false,"fork":false,"pushed_at":"2021-10-24T20:17:28.000Z","size":18,"stargazers_count":11,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-08-01T23:30:45.473Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sunneydev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2021-06-16T08:51:40.000Z","updated_at":"2024-08-01T23:30:45.474Z","dependencies_parsed_at":null,"dependency_job_id":"550bc5c1-92d5-4e89-9866-8feb55825b46","html_url":"https://github.com/sunneydev/lcu-events","commit_stats":null,"previous_names":["sunney-x/lcu-events"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sunneydev%2Flcu-events","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sunneydev%2Flcu-events/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sunneydev%2Flcu-events/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sunneydev%2Flcu-events/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sunneydev","download_url":"https://codeload.github.com/sunneydev/lcu-events/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249479043,"owners_count":21279184,"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-08-01T23:00:22.604Z","updated_at":"2026-03-11T01:36:30.501Z","avatar_url":"https://github.com/sunneydev.png","language":"TypeScript","readme":"# lcu-events\n\nA lightweight cross-platform TS project for receiving events from LCU.\n\n# Installation\n\n```\nnpm install lcu-events\n```\n\n# Usage\n\n### Subscribe to a specific event\n\n```ts\nimport LCU from 'lcu-events';\n\nconst lcu = new LCU();\n\nlcu.events.on('/lol-champ-select/v1/session', (data) =\u003e {\n    // handle\n})\n```\n\n### Make a request to an endpoint\n\n```ts\nimport LCU from \"./lcu\";\n\nconst lcu = new LCU();\n\nlcu.wsEvents.on('connect', () =\u003e {\n  lcu.fetch('/lol-login/v1/session')\n  .then((resp) =\u003e resp.json())\n  .then((data) =\u003e {\n    // process data...\n  })\n})\n```\n","funding_links":[],"categories":["Developer Tools"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsunneydev%2Flcu-events","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsunneydev%2Flcu-events","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsunneydev%2Flcu-events/lists"}