@imnyang/comcigan.ts (0.3.1)

Published 2026-04-05 19:31:23 +09:00 by imnyang in imnyang/comcigan.ts

Installation

@imnyang:registry=
npm install @imnyang/comcigan.ts@0.3.1
"@imnyang/comcigan.ts": "0.3.1"

About this package

comcigan.ts

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

npm version License

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

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

설치

npm install @imnyang/comcigan.ts  # npm
yarn add @imnyang/comcigan.ts  # yarn
pnpm add @imnyang/comcigan.ts  # pnpm
bun add @imnyang/comcigan.ts

Forgejo 레지스트리에서 설치하기

이 패키지를 Forgejo 레지스트리에서 설치할 때는 설치하는 프로젝트(consumer) 쪽 설정이 필요합니다.

프로젝트 루트의 .npmrc에 아래를 추가하세요.

@imnyang:registry=https://git.mizuki.guru/api/packages/imnyang/npm/

패키지가 비공식(private)인 경우에는 인증 토큰도 필요합니다.

사용 예시

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()

Dependencies

Dependencies

ID Version
iconv-lite ^0.6.3
undici ^6.23.0

Development dependencies

ID Version
@biomejs/biome ^1.9.4
@types/node ^20.19.28
rimraf ^5.0.10
semantic-release ^24.2.9
ts-node ^10.9.2
typescript ^5.9.3

Keywords

comcigan parser typescript school korean
Details
npm
2026-04-05 19:31:23 +09:00
9
imnyang
LGPL-3.0-or-later
latest
74 KiB
Assets (1)
Versions (1) View all
0.3.1 2026-04-05