Nicholas-Sliter / departments.js

A JavaScript / TypeScript API for the Middlebury departments list.

Home Page:https://www.npmjs.com/package/departments.js

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

departments.js

JavasScript / TypeScript API for the Middlebury Department Directory at https://ssb-prod.ec.middlebury.edu/PNTR/saturn_midd.course_catalog_utlq.catalog_page_by_dept?p_term=202210&

Use it like this

import { Scraper } from 'departments.js';

const season = "F21"; //Fall 2021

//an optional custom prefix padding for department names which are not 4 characters long, default is " ".
const prefixChar = "_";
const S = new Scraper(season, prefixChar);

async () => {
  await S.init();
  const departments = S.departments;
}




About

A JavaScript / TypeScript API for the Middlebury departments list.

https://www.npmjs.com/package/departments.js

License:MIT License


Languages

Language:JavaScript 52.2%Language:TypeScript 47.8%