Skip to content

Commit

Permalink
docs 📝, fix test command 🐛
Browse files Browse the repository at this point in the history
  • Loading branch information
derhuerst committed May 24, 2016
1 parent 0b8f0cd commit 213c5cd
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 3 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"tap-min": "^1.1"
},
"scripts": {
"test": "./test.js",
"prepublish": "npm test"
"test": "tape test.js | tap-min",
"prepublish": "npm test"
}
}
23 changes: 22 additions & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,28 @@

**Parse ticket information from the VBB HAFAS API.**

todo: example
```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'
}
```

[![npm version](https://img.shields.io/npm/v/vbb-parse-ticket.svg)](https://www.npmjs.com/package/vbb-parse-ticket)
[![build status](https://img.shields.io/travis/derhuerst/vbb-parse-ticket.svg)](https://travis-ci.org/derhuerst/vbb-parse-ticket)
Expand Down

0 comments on commit 213c5cd

Please sign in to comment.