fetch-db-operating-status

1.0.1 • Public • Published

fetch-db-operating-status

Fetch major alerts about the operating status of Deutsche Bahn.

npm version build status ISC-licensed support me via GitHub Sponsors chat with me on Twitter

Installation

npm install fetch-db-operating-status

Usage

const fetchOperatingStatus = require('.')

fetchOperatingStatus()
.then(console.log)
.catch(console.error)
{
	messageId: 9086315,
	translations: {
		en: {
			title: 'Strike is over',
			message: 'Minor disruption to rail services can still occur.',
			link: 'https://www.bahn.de/p/view/service/aktuell/index.shtml'
		},
		de: {
			title: 'Nach Streikende: Bahnverkehr stabilisiert sich weiter.',
			message: 'Für Dienstag, 11.12. regulärer Zugverkehr erwartet. ',
			link: 'https://www.bahn.de/p/view/service/aktuell/index.shtml?dbkanal_007=L01_S01_D001_KIN0001_blitzbox-bahndeaktuell-021218_LZ01'
		}
	}
}

Contributing

If you have a question or need support using fetch-db-operating-status, please double-check your code and setup first. If you think you have found a bug or want to propose a feature, refer to the issues page.

Package Sidebar

Install

npm i fetch-db-operating-status

Weekly Downloads

0

Version

1.0.1

License

ISC

Unpacked Size

4.48 kB

Total Files

5

Last publish

Collaborators

  • derhuerst