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.0KB

1234567891011121314151617181920212223242526272829303132
  1. # vbb-translate-ids
  2. **Translate VBB IDs from 9-digit to 12-digit and reverse.**
  3. [![npm version](https://img.shields.io/npm/v/vbb-translate-ids.svg)](https://www.npmjs.com/package/vbb-translate-ids)
  4. [![build status](https://img.shields.io/travis/derhuerst/vbb-translate-ids.svg)](https://travis-ci.org/derhuerst/vbb-translate-ids)
  5. ![ISC-licensed](https://img.shields.io/github/license/derhuerst/vbb-translate-ids.svg)
  6. [![gitter channel](https://badges.gitter.im/derhuerst/vbb-rest.svg)](https://gitter.im/derhuerst/vbb-rest)
  7. ## Installing
  8. ```shell
  9. npm install vbb-translate-ids
  10. ```
  11. ## Usage
  12. ```js
  13. const {to12Digit, to9Digit} = require('vbb-translate-ids')
  14. assert.strictEqual(to12Digit('900003201'), '900000003201')
  15. assert.strictEqual(to9Digit('900000003201'), '900003201')
  16. ```
  17. If `to12Digit`/`to9Digit` don't know how to translate the ID, they will just return it.
  18. ## Contributing
  19. If you **have a question**, **found a bug** or want to **propose a feature**, have a look at [the issues page](https://github.com/derhuerst/vbb-translate-ids/issues).