{"_id":"kleague-results","name":"kleague-results","dist-tags":{"latest":"0.2.0"},"versions":{"0.2.0":{"name":"kleague-results","version":"0.2.0","description":"Official K League match results and standings client","license":"MIT","main":"src/index.js","engines":{"node":">=18"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/NomaDamas/k-skill.git"},"keywords":["k-skill","korea","kleague","soccer"],"scripts":{"lint":"node --check src/index.js && node --check src/parse.js && node --check test/index.test.js","test":"node --test"},"gitHead":"bd6997d1332ab4937521bb607dec0e7a776e7f98","_id":"kleague-results@0.2.0","bugs":{"url":"https://github.com/NomaDamas/k-skill/issues"},"homepage":"https://github.com/NomaDamas/k-skill#readme","_nodeVersion":"24.14.0","_npmVersion":"11.9.0","dist":{"integrity":"sha512-mGUg7q49zid97/+3fFsrKaQfYdMxMZYPEKtSob8CbiMszPfjhscu82ErvGluchbCQroBVwF37Q+Z6yan+zdRvA==","shasum":"a6af9c0b64dd39bb432c889322dab59a9ce23767","tarball":"https://registry.npmjs.org/kleague-results/-/kleague-results-0.2.0.tgz","fileCount":4,"unpackedSize":17320,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/kleague-results@0.2.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQDQkCVn9QN5k+fi+aJZK3NLl1DwZYISwL+X7L1VOoEjlAIgOyAED7Zqldtla/ML2v+SdmcT/cU2+oW6xqLTJQXoBVk="}]},"_npmUser":{"name":"vkehfdl1","email":"vkehfdl1@gmail.com"},"directories":{},"maintainers":[{"name":"vkehfdl1","email":"vkehfdl1@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/kleague-results_0.2.0_1774878099443_0.23400130778132633"},"_hasShrinkwrap":false}},"time":{"created":"2026-03-30T13:41:39.339Z","0.2.0":"2026-03-30T13:41:39.582Z","modified":"2026-03-30T13:41:39.977Z"},"maintainers":[{"name":"vkehfdl1","email":"vkehfdl1@gmail.com"}],"description":"Official K League match results and standings client","homepage":"https://github.com/NomaDamas/k-skill#readme","keywords":["k-skill","korea","kleague","soccer"],"repository":{"type":"git","url":"git+https://github.com/NomaDamas/k-skill.git"},"bugs":{"url":"https://github.com/NomaDamas/k-skill/issues"},"license":"MIT","readme":"# kleague-results\n\n공식 K리그 JSON 엔드포인트를 감싼 재사용 가능한 Node.js 클라이언트입니다. 날짜별 경기 결과와 현재 순위를 함께 조회할 수 있습니다.\n\n## Install\n\n```bash\nnpm install kleague-results\n```\n\n## Official surfaces\n\n- 일정/결과: `https://www.kleague.com/getScheduleList.do`\n- 팀 순위: `https://www.kleague.com/record/teamRank.do`\n\n## Usage\n\n```js\nconst { getKLeagueSummary, getMatchResults, getStandings } = require(\"kleague-results\");\n\n(async () => {\n  const results = await getMatchResults(\"2026-03-22\", {\n    leagueId: \"K리그1\",\n    team: \"FC서울\",\n  });\n\n  const standings = await getStandings({\n    leagueId: 1,\n    year: 2026,\n  });\n\n  const summary = await getKLeagueSummary(\"2026-03-22\", {\n    leagueId: \"K리그1\",\n    team: \"FC서울\",\n    includeStandings: true,\n  });\n\n  console.log(results.matches[0]);\n  console.log(standings.rows[0]);\n  console.log(summary);\n})();\n```\n\n## API\n\n### `getMatchResults(date, options)`\n\n- `date`: `YYYY-MM-DD` 또는 `Date`\n- `options.leagueId`: `1`, `2`, `K리그1`, `K리그2`\n- `options.team`: short name / full name / team code alias\n\n### `getStandings(options)`\n\n- `options.leagueId`: `1` 또는 `2`\n- `options.year`: 시즌 연도, 기본값은 한국 시간 현재 연도\n\n### `getKLeagueSummary(date, options)`\n\n- 날짜 결과와 현재 순위를 한 번에 반환합니다.\n\n## Notes\n\n- 공식 K리그 JSON 엔드포인트 기준이라 HTML 크롤링보다 유지보수가 단순합니다.\n- `getScheduleList.do` 는 월 단위 응답이므로 라이브러리가 요청 날짜만 다시 필터링합니다.\n- `teamRank.do` 는 `stadium=all` 기준 현재 순위를 조회합니다.\n","readmeFilename":"README.md","_rev":"1-160d65d66916764a956ff6aa8fdaab49"}