Skip to content
This repository has been archived by the owner on Aug 20, 2019. It is now read-only.

bencevans/contactless-tfl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

Stars

Watchers

Forks

Packages

No packages published