No description
- Rust 94.8%
- JavaScript 5.2%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| .cargo | ||
| examples | ||
| scripts | ||
| src | ||
| tests | ||
| .gitignore | ||
| Cargo.lock | ||
| Cargo.toml | ||
| LICENSE.md | ||
| README.md | ||
@unilim/edt-iut-info
Timetable (emploi du temps) bindings for the IUT informatique de Limoges (edt-iut-info.unilim.fr), compiled from Rust to WebAssembly. Includes a self-contained PDF extractor — no CAS dependency.
Install
npm install @unilim/edt-iut-info
Usage
import {
getTimetableFromBuffer,
OnlineTimetable,
TimetableYear,
} from "@unilim/edt-iut-info";
// from a PDF you already have
const timetable = await getTimetableFromBuffer(new Uint8Array(pdfBytes));
console.log(timetable.header, timetable.lessons);
// or from the online directory
const latest = await OnlineTimetable.getLatestTimetableEntry(TimetableYear.A1);
const online = await latest.getTimetable();
Development
cargo test # pdf + timetable golden parity
cargo run --example local # parse tests/example.pdf -> JSON
cargo run --example online # fetch + parse the latest A1 timetable
bun scripts/npm.js # build the @unilim/edt-iut-info package