vbb-parse-ticket
v0.2.1
Published
Parse ticket information from the VBB HAFAS API.
Downloads
506
Readme
vbb-parse-ticket
Parse ticket information from the VBB HAFAS API.
{
name: 'foo'
, price: 321
, shpCtx: '{"TLS": "B3TK"}'
}
will be parsed to
{
name: 'foo'
, price: 3.21
, amount: 1
, fullDay: true
, group: true
, tariff: 'Berlin'
, coverage: 'ABC'
, variant: '1 day, group'
}
Installing
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.