Files
nomadamas__k-skill/packages/k-lotto/README.md
Jeffrey (Dongkyu) Kim 720964cf49 Prepare k-skill for packaged releases and broader skill discovery
This snapshots the current repository updates as a coherent release-prep
baseline: workspace/package scaffolding, release automation docs and
workflows, refreshed skill/setup documentation, roadmap expansion, and
the README thumbnail polish.

Constraint: Node packages in this repo must use npm workspaces and Changesets for releases
Constraint: Python release automation stays scaffold-only until a real package exists
Rejected: Split the current work into multiple commits | user asked to commit the current changes together
Confidence: medium
Scope-risk: moderate
Reversibility: clean
Directive: Keep release docs, workflows, and package metadata aligned when adding future packages
Tested: npm run ci
Not-tested: GitHub Actions execution on remote after push
2026-03-25 23:57:53 +09:00

45 lines
853 B
Markdown

# k-lotto
동행복권 공식 결과 페이지와 JSON 응답을 이용해 한국 로또 6/45 당첨 결과를 조회하는 Node.js 패키지입니다.
## 설치
배포 후:
```bash
npm install k-lotto
```
이 저장소에서 개발할 때:
```bash
npm install
```
## 사용 예시
```js
const lotto = require("k-lotto");
async function main() {
const latestRound = await lotto.getLatestRound();
const detail = await lotto.getDetailResult(latestRound);
const checked = await lotto.checkNumber(latestRound, [3, 10, 14, 15, 23, 24]);
console.log({ latestRound, detail, checked });
}
main().catch((error) => {
console.error(error);
process.exitCode = 1;
});
```
## 공개 API
- `getLatestRound()`
- `getResult(round)`
- `getDetailResult(round)`
- `checkNumber(round, ticketNumbers)`
- `evaluateTicket(detailResult, ticketNumbers)`