⚙ retrieve event data from http://britishcycling.org
Clone or download

README.md

Build Status

⚙ race-lib

Retrieve event data from britishcycling.org

import { Event } from 'race-lib';
import cheerio from 'cheerio';
import fetch from 'node-fetch';

Event.inject('fetch', fetch);
Event.inject('cheerio', cheerio);

Event.upcomming().then((events) => {
  events.forEach( evt => console.log(evt.name));
});

See race-cli for example of usage in node and race-ext for browser usage.