This project is inspired by AcornAPI which is an Acorn API written in Java.
npm install acorn-api --save
import { Acorn } from 'acorn-api-js';
const example = new Acorn();
example.basic.login('user', 'pass');
example.course.getEligibleRegistrations();
example.course.getEnrolledCourses();
example.course.getCartedCourses();
int registrationIndex = 0;
const courseCode = "CSC373H1", sectionCode = "Y", courseSessionCode = "20175";
const course = example.getExtraCourseInfo(registrationIndex, courseCode, courseSessionCode, sectionCode);
int registrationIndex = 0;
const courseCode = "CSC373H1", sectionCode = "Y", lecSection = "LEC,5101";
const result = example.course.enroll(registrationIndex, courseCode, sectionCode, lecSection);
const academicReport = example.academic.getAcademicHistory();