oyster-history

0.1.0 • Public • Published

oyster-history

Scrape your oyster card journey history

Checkout oyster-history-cli to view your oyster history in your command prompt.

Installation

$ npm install --save oyster-history

Usage

var TravelHistory = require('oyster-history');
 
TravelHistory('mail@example.com', 'p4ssw0rd', function(history) {
    console.log(history);
    //=> Returns array of travel data
    [ { date: 'Tuesday, 30 September 2014 10:33',
    balance: '£23.30',
    charge: '+£20.00',
    journey: 'Topped up,' },
  { date: 'Monday, 29 September 2014 13:33',
    balance: '£4.75',
    charge: '£1.45',
    journey: 'Entered Wimbledon tram stop' },
  { date: 'Monday, 29 September 2014 10:15',
    balance: '£6.20',
    charge: '£1.45',
    journey: 'Entered Wandle Park tram stop' } ]
});

Dependencies (4)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i oyster-history

    Weekly Downloads

    4

    Version

    0.1.0

    License

    MIT

    Last publish

    Collaborators

    • charliedowler