1.0.7 • Published 6 years ago
@minot0r/iutcalendar v1.0.7
iutcalendar
a npm package to retrieve courses of Nantes' IUT
install
install using
npm i @minot0r/iutcalendar
example
Docs this is a basic example of getting next course using iutcalendar
/* Basically you're creating your EDT object, then you build it, 
 * build here does retrieve all courses from constructor parameters
 * and returns a Promise which gives you back your EDT object
 * with courses loaded.
 * 
 * Play around with other EDT methods which you can find on docs
 */
new EDT(new Group(1, 1), new Date()).build().then(edt => {
    let nextCourse = edt.getClosestCourse()
    // Play around with your course, find all data you can get from it with docs
}).catch(err => {
    // In case there is an error
})