vbb-parse-ticket
Version:
Parse ticket information from the VBB HAFAS API.
46 lines (34 loc) • 1.32 kB
Markdown
# vbb-parse-ticket
**Parse ticket information from the VBB HAFAS API.**
```js
{
name: 'foo'
, price: 321
, shpCtx: '{"TLS": "B3TK"}'
}
```
will be parsed to
```js
{
name: 'foo'
, price: 3.21
, amount: 1
, fullDay: true
, group: true
, tariff: 'Berlin'
, coverage: 'ABC'
, variant: '1 day, group'
}
```
[](https://www.npmjs.com/package/vbb-parse-ticket)
[](https://travis-ci.org/derhuerst/vbb-parse-ticket)
[](https://david-dm.org/derhuerst/vbb-parse-ticket)
[](https://david-dm.org/derhuerst/vbb-parse-ticket#info=devDependencies)

[](https://gitter.im/derhuerst/vbb-rest)
## Installing
```shell
npm install vbb-parse-ticket
```
## Contributing
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-parse-ticket/issues).