Skip to content

Latest commit

 

History

History
53 lines (42 loc) · 1.93 KB

readme.md

File metadata and controls

53 lines (42 loc) · 1.93 KB

fes-calendar

Queries the Friedrich-Ebert-Stiftung (FES) event calendar website for events.

npm version Build Status Greenkeeper badge dependency status license chat on gitter

Installation

npm install fes-calendar

Usage

const calendar = require('fes-calendar')

const events = calendar(startDate, endDate).then()

Returns a Returns a Promise that resolves in a list of events in the time period between given startDate and endDate (required). All texts are markdown-formatted.

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