Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/mrloop/race-lib

⚙ retrieve event data from http://britishcycling.org
https://github.com/mrloop/race-lib

Last synced: 5 days ago
JSON representation

⚙ retrieve event data from http://britishcycling.org

Awesome Lists containing this project

README

        

[![CI](https://github.com/mrloop/race-lib/actions/workflows/ci.yml/badge.svg)](https://github.com/mrloop/race-lib/actions/workflows/ci.yml)
[![Latest NPM release][npm-badge]][npm-badge-url]

[npm-badge]: https://img.shields.io/npm/v/race-lib.svg
[npm-badge-url]: https://www.npmjs.com/package/race-lib

# ⚙ race-lib

Retrieve event data from [britishcycling.org](https://www.britishcycling.org.uk/events/results?keywords=&show=all)

```js
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](https://github.com/mrloop/race-cli) for example of usage in node and [race-ext](https://github.com/mrloop/race-ext) for browser usage.