release: 0.1.0
This commit is contained in:
parent
ed0a6edec9
commit
a2c51585b4
18 changed files with 2276 additions and 0 deletions
28
README.md
Normal file
28
README.md
Normal 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()
|
||||
```
|
||||
Loading…
Add table
Add a link
Reference in a new issue