https://github.com/1407arjun/vit-timetable-explorer
NPM package for parsing VIT timetables and finding free slots from all timetables at once
https://github.com/1407arjun/vit-timetable-explorer
Last synced: 11 months ago
JSON representation
NPM package for parsing VIT timetables and finding free slots from all timetables at once
- Host: GitHub
- URL: https://github.com/1407arjun/vit-timetable-explorer
- Owner: 1407arjun
- License: mit
- Created: 2022-10-07T21:38:49.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2023-09-06T23:24:25.000Z (almost 3 years ago)
- Last Synced: 2025-07-30T22:24:03.617Z (12 months ago)
- Language: TypeScript
- Homepage: https://www.npmjs.com/package/vit-timetable-explorer
- Size: 30.3 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# vit-timetable-explorer
NPM package for parsing VIT timetables and finding free slots from all timetables at once.
### For getting the timetable entries follow the steps below:
- Go to your timetable on VTOP. Scroll down to see the table with your schedule.
- Select the text from THEORY in the top left to L94 - in the bottom right
- Copy-paste all of the selected text.
### Find free slots using the `findFreeSlots()` function
``` js
import { findFreeSlots, parseTimetable } from "vit-timetable-explorer"
const timetables = ["", "", ...]
console.log(findFreeSlots(timetables))
/* Returns start and end times in an array
type { start: string; end: string }[] */
```
### Find course details using the `parseTimetable()` utility function
``` js
import { findFreeSlots, parseTimetable } from "vit-timetable-explorer"
const timetable = ""
console.log(parseTimeTable(timetable))
/* Returns the details of the registered courses in an array
type {
slot: string
code: string
type: string
room: string
day: number # 0-6 representing MON to SUN
start: string
end: string
} */
```
### Find free slots using the CLI
``` bash
$ vit-tt
# Returns start and end times in an array, type { start: string; end: string }[]
```