1.2.3 • Published 5 years ago

university-schedule-parser v1.2.3

Weekly downloads
1
License
ISC
Repository
github
Last release
5 years ago

University Schedule Parser

Parse schedule for some university in Indonesia.

Installation

Using npm:

$ npm install university-schedule-parser

Usage

In es6:

  import {ScheduleType, parse} from 'university-schedule-parser';

  .
  .
  .

  // Schedule webpage html in string
  const html = '...';

  // University name
  const type = ScheduleType.Telkom;
  
  const schedule = parse(html, type);

Parsed schedule will have properties described below.

StudentData

NameTypeDescription
namestringStudent name
nimstringStudent ID
schedulesarray of ScheduleStudent schedules

Schedule

NameTypeDescription
daystringDay name for current schedule (english / indonesian)
startstringStart hour for current schedule
endstringEnd hour for current schedule
namestringSchedule name
roomstringSchedule room name
class_namestringSchedule class name
codestringSchedule code

Supported Universities

Below are supported university schedule and their respective enum type.

TypeUniversity
TelkomTelkom University
UGMUniversitas Gadjah Mada

Matias Alvin(2019)

1.2.3

5 years ago

1.2.2

5 years ago

1.2.1

5 years ago

1.2.0

5 years ago

1.1.0

5 years ago

1.0.0

5 years ago