Skip to content
master
Switch branches/tags
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
src
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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.

About

retrieve event data from http://britishcycling.org

Resources

License

Releases

No releases published

Packages

No packages published