Skip to content

Latest commit

 

History

History
22 lines (15 loc) · 778 Bytes

README.md

File metadata and controls

22 lines (15 loc) · 778 Bytes

CI Latest NPM release

⚙ race-lib

Retrieve event data from britishcycling.org

import { Event, setup } from 'race-lib';
import cheerio from 'cheerio';

setup({ 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.