1.0.2 • Published 2 years ago

optivum-timetable-parser v1.0.2

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

Prerequisites

Node.js v14 or newer

Installation

npm i optivum-timetable-parser

Usage

import { Table } from "optivum-timetable-parser";

const t = new Table(/* Optivum-generated timetable .htm file */);

// gets lessons ordered by day and accordingly splitted into groups
const lessonsOrderedByDay = t.days;

// gets day names from the table
const days = t.dayNames;

// gets lesson-hours
const hours = t.hours;

// gets title from the header
const name = t.name;