https://github.com/juliuste/fes-calendar
Queries the Friedrich-Ebert-Stiftung (FES) event calendar.
https://github.com/juliuste/fes-calendar
library spd
Last synced: 8 months ago
JSON representation
Queries the Friedrich-Ebert-Stiftung (FES) event calendar.
- Host: GitHub
- URL: https://github.com/juliuste/fes-calendar
- Owner: juliuste
- License: isc
- Created: 2017-03-04T21:17:15.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2020-06-01T07:40:26.000Z (about 6 years ago)
- Last Synced: 2025-01-25T18:45:27.548Z (over 1 year ago)
- Topics: library, spd
- Language: JavaScript
- Size: 50.8 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 6
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
# fes-calendar
Queries the [Friedrich-Ebert-Stiftung (FES) event calendar](http://www.fes.de/de/veranstaltungen/) website for events.
[](https://www.npmjs.com/package/fes-calendar)
[](https://travis-ci.org/juliuste/fes-calendar)
[](https://greenkeeper.io/)
[](https://david-dm.org/juliuste/fes-calendar)
[](license)
[](https://gitter.im/juliuste)
## Installation
```js
npm install fes-calendar
```
## Usage
```js
const calendar = require('fes-calendar')
const events = calendar(startDate, endDate).then(…)
```
Returns a Returns a [Promise](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/promise) that resolves in a list of events in the time period between given `startDate` and `endDate` (required). All texts are markdown-formatted.
```js
{
id: '212212',
title: 'Politik um 12',
description: 'This is a description text.',
mail: 'paula.blub@fis.di',
'contact-person': 'Peter Testperson',
'contact-address': 'FIS NRW, Charles Place 22, 44444 Borsteln',
start: '2017-06-30T18:00:00.000Z', // JS Date()
end: '2017-06-31T09:00:00.000Z' // JS Date(), optional
location: 'Blubdorf',
fee: 0, // in EUR
info: 'keine Plätze mehr',
childcare: false,
attachments: '[FE6_www.pdf](https://www.fis.di/oas6_www.pdf)\n[FGHS](https://www.fis.di/oblunk.pdf)',
organization: {
name: 'Friedrich-Ebert-Stiftung',
id: 'fes'
}
}
// …
```
## Contributing
If you found a bug or want to propose a feature, feel free to visit [the issues page](https://github.com/juliuste/fes-calendar/issues).