
Product
Introducing Pull Request Stories to Help Security Teams Track Supply Chain Risks
Socket’s new Pull Request Stories give security teams clear visibility into dependency risks and outcomes across scanned pull requests.
catalog.js
Advanced tools
$ npm install --save middlebury-catalog
This updated NPM module is ESM only and is compiled to modern ES6+ JS.
Scrape the course catalog for a given term in one of two formats (YYYYSS or SYY) and a set of search parameters. The URL is automatically constructed based on the term and parameters. If given no search parameters, the scraper will use its predefined defaults.
import Scraper from ('middlebury-catalog');
const scraper = new Scraper('202190');
const catalog = await scraper.getCatalog();
or manually
import Scraper from ('middlebury-catalog');
const scraper = new Scraper('F21');
await scraper.scrape();
await scraper.parse();
const catalog = scraper.catalog;
Specify an XML file to scrape from.
import Scraper from ('middlebury-catalog');
const scraper = new Scraper('F21', searchParameters);
const catalog = await scraper.getCatalogFromFile("./test/test.xml");
Clone the repository then run:
$ npm install
Run the tests with:
$ npm test
FAQs
A JavaScript / TypeScript API for the Middlebury course catalog.
We found that catalog.js demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket’s new Pull Request Stories give security teams clear visibility into dependency risks and outcomes across scanned pull requests.
Research
/Security News
npm author Qix’s account was compromised, with malicious versions of popular packages like chalk-template, color-convert, and strip-ansi published.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.