vit-timetable-explorer
TypeScript icon, indicating that this package has built-in type declarations

2.6.5 • Public • Published

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

import { findFreeSlots, parseTimetable } from "vit-timetable-explorer"

const timetables = ["<timteable-from-vtop-1>", "<timteable-from-vtop-2>", ...]

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

import { findFreeSlots, parseTimetable } from "vit-timetable-explorer"

const timetable = "<timteable-from-vtop-1>"

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

vit-tt <path-to-txt-file>

# Returns start and end times in an array, type { start: string; end: string }[]

Readme

Keywords

Package Sidebar

Install

npm i vit-timetable-explorer

Weekly Downloads

7

Version

2.6.5

License

MIT

Unpacked Size

22.8 kB

Total Files

35

Last publish

Collaborators

  • 1407arjun