contactless-tfl

1.0.0 • Public • Published

contactless-tfl

Retrieve account balances from TFL's Contactless/Oyster site.

Install

$ npm install contactless-tfl

Usage

const tfl = require('contactless-tfl')
 
tfl(process.env.LOGIN, process.env.PASS)
  .then(console.log)
  .catch(console.error)
// => [ { id: 'REDACTED', balance: 0.5, currency: 'GBP' },
//      { id: 'REDACTED', balance: 14.5, currency: 'GBP' } ]
 

Licence

MIT © Ben Evans

Readme

Keywords

none

Package Sidebar

Install

npm i contactless-tfl

Weekly Downloads

1

Version

1.0.0

License

none

Last publish

Collaborators

  • bencevans