Software zum Installieren eines Smart-Mirror Frameworks , zum Nutzen von hochschulrelevanten Informationen, auf einem Raspberry-Pi.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Philipp Partosch 46a936d7de added all files to project 2 years ago
..
index.js added all files to project 2 years ago
license.md added all files to project 2 years ago
package.json added all files to project 2 years ago
readme.md added all files to project 2 years ago

readme.md

vbb-parse-line

Parses the names of VBB lines like M4, TXL, S42.

npm version build status ISC-licensed chat on gitter support me on Patreon

Because this module tries to guess the mode of transport from line names, it is doomed to have conflicts. Right now, it is primarily focused on Berlin, until we have a more robust solution to find out more about lines.

Installing

npm install vbb-parse-line

Usage

const parse = require('vbb-parse-line')
parse('M4')

This will return the following.

{
	mode: 'train',
	product: 'tram',
	symbol: 'M',
	nr: 4
	metro: true  // buses & trams that run frequently & all day
	express: false // buses that skip stations
	night: false // buses replacing other lines in the night
}

Contributing

If you have a question or have difficulties using vbb-parse-line, 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.