Philipp Partosch 46a936d7de added all files to project | 2 years ago | |
---|---|---|
.. | ||
index.js | 2 years ago | |
license.md | 2 years ago | |
package.json | 2 years ago | |
readme.md | 2 years ago | |
variants.js | 2 years ago |
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'
}
npm install vbb-parse-ticket
If you have a question, found a bug or want to propose a feature, have a look at the issues page.