release: 0.1.0

This commit is contained in:
Starcea 2024-06-27 23:57:01 +09:00
commit a2c51585b4
No known key found for this signature in database
GPG key ID: B7A77E32374911E1
18 changed files with 2276 additions and 0 deletions

28
README.md Normal file
View file

@ -0,0 +1,28 @@
# comcigan.ts
[컴시간알리미](http://컴시간학생.kr)를 파싱하는 TypeScript 라이브러리입니다.
## 설치
```bash
npm install comcigan.ts # npm
yarn add comcigan.ts # yarn
pnpm add comcigan.ts # pnpm
```
## 사용법
```typescript
import Comcigan, { Weekday } from 'comcigan.ts'
const comcigan = new Comcigan()
const main = async () => {
const schools = await comcigan.searchSchool('학교 이름')
const timetable = await comcigan.getTimetable(schools[0].code)
console.log(timetable.getByDay(1, 2, Weekday.Monday)) // 1학년 2반 월요일 시간표
}
main()
```