0.0.2 • Published 8 years ago

middlebury-catalog v0.0.2

Weekly downloads
1
License
MIT
Repository
-
Last release
8 years ago

catalog.js

A JavaScript API for the Middlebury course catalog.

Build Status

Usage

Scrape from url

var scraper = require('./src/scraper');

// the scraper is able to construct the url given a term
scraper('201590').catalogFromUrl()
.then(function (xml) {
  console.log(xml);
});

Scrape from file

var scraper = require('./src/scraper');

scraper('201590').catalogFromFile('test/test.xml')
.then(function (xml) {
  console.log(xml);
});

Develop

Clone the repository then run

$ npm install

and run the tests with

$ npm test