Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/mrloop/race-lib
- Owner: mrloop
- License: mit
- Created: 2017-09-13T18:56:02.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2024-10-18T22:27:14.000Z (27 days ago)
- Last Synced: 2024-10-26T13:28:03.197Z (19 days ago)
- Language: JavaScript
- Homepage:
- Size: 2.04 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
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.