NOTE: This library is deprecated
Dining module for RedAPIroh. Can be used to fetch information about Cornell dining calendars on any node.js script.
npm install http://github.com/mrkev/iroh
var iroh = require('iroh');
iroh.get_menus(iroh.ALL_MEALS, iroh.ALL_LOCATIONS, iroh.DIM_LOCATIONS)
.then(function(json){
console.log(json);
});
iroh.get_events(iroh.ALL_LOCATIONS, iroh.DATE_RANGE('today', 'tomorrow'))
.then(function(json){
console.log(json);
});
TODO
Merge menu_brb to menu data.Move cache management to Cache class.Dropped cache support. This is just the fetcher, cache is application-specific
- Write /data/menu.coffee
- Move some of calendar_hall functions to /lib
TODO:
Update readme. So out of date.- Add some more tests.
... lol
- Add some more examples.
- Document a bit more.
- Check out https://github.com/genkimarshall/bigredapp-android/ 👍🏽