이 레피지토리는 하드포크를 목표로 합니다
  • TypeScript 100%
Find a file
2025-11-28 11:41:49 +09:00
.github/workflows chore: update CI workflow to use npm instead of pnpm and adjust caching 2025-11-28 11:41:49 +09:00
docs docs: fix changelog [skip ci] 2024-08-10 17:45:55 +09:00
src Merge remote-tracking branch 'origin/release' 2025-11-28 11:23:02 +09:00
tests test: write test codes with gh workflow 2024-08-10 17:08:53 +09:00
.gitignore test: write test codes with gh workflow 2024-08-10 17:08:53 +09:00
.npmrc chore: add .npmrc file to specify publish branch 2025-11-28 11:37:13 +09:00
biome.json chore(biome): enable vcs integration 2024-06-29 14:03:44 +09:00
bun.lock Refactor timetable retrieval methods to include nextWeek parameter for better flexibility 2025-11-28 11:15:40 +09:00
LICENSE chore: change LICENSE to LGPL 2024-09-18 12:42:30 +09:00
package.json chore: update version to 0.2.0 in package.json 2025-11-28 11:39:28 +09:00
pnpm-lock.yaml perf: use undici instead of axios 2024-11-02 14:00:41 +09:00
README.md Update README.md 2025-11-28 11:34:13 +09:00
renovate.json chore: use biome instead of eslint and prettier 2024-06-29 13:48:40 +09:00
tsconfig.json build: do not include tests 2024-08-11 16:30:41 +09:00

comcigan.ts

star0202님의 comcigan.ts를 기반으로 합니다.

npm version License

컴시간알리미를 파싱하는 TypeScript 라이브러리입니다.

컴시간알리미의 구조 및 파싱 방법은 docs/README.md를 참고해주세요.

설치

npm install comcigan.ts  # npm
yarn add comcigan.ts  # yarn
pnpm add comcigan.ts  # pnpm

사용 예시

import Comcigan, { School, Weekday } from 'comcigan.ts'

const comcigan = new Comcigan()

const main = async () => {
  const searchedSchools = await comcigan.searchSchools('학교 이름') // 학교 검색
  const school = await School.fromName('학교 이름') // 바로 불러오기 (== searchedSchools[0])

  console.log(await school.getTimetable(3, 3, Weekday.Friday)) // 3학년 3반 금요일 시간표
  console.log(await comcigan.getTimetable(school.code, 3, 3, Weekday.Friday)) // 학교 코드를 이용하는 방법
}

main()