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.

readme.md 1.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. # *vbb-parse-line*
  2. **Parses the names of VBB lines like `M4`, `TXL`, `S42`.**
  3. [![npm version](https://img.shields.io/npm/v/vbb-parse-line.svg)](https://www.npmjs.com/package/vbb-parse-line)
  4. [![build status](https://img.shields.io/travis/derhuerst/vbb-parse-line.svg)](https://travis-ci.org/derhuerst/vbb-parse-line)
  5. ![ISC-licensed](https://img.shields.io/github/license/derhuerst/vbb-parse-line.svg)
  6. [![chat on gitter](https://badges.gitter.im/derhuerst.svg)](https://gitter.im/derhuerst)
  7. [![support me on Patreon](https://img.shields.io/badge/support%20me-on%20patreon-fa7664.svg)](https://patreon.com/derhuerst)
  8. 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.
  9. ## Installing
  10. ```shell
  11. npm install vbb-parse-line
  12. ```
  13. ## Usage
  14. ```js
  15. const parse = require('vbb-parse-line')
  16. parse('M4')
  17. ```
  18. This will return the following.
  19. ```js
  20. {
  21. mode: 'train',
  22. product: 'tram',
  23. symbol: 'M',
  24. nr: 4
  25. metro: true // buses & trams that run frequently & all day
  26. express: false // buses that skip stations
  27. night: false // buses replacing other lines in the night
  28. }
  29. ```
  30. ## Contributing
  31. 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](https://github.com/derhuerst/vbb-parse-line/issues).