Get your presto card balance using Puppeteer.
const prestoCard = require('presto-card-puppeteer');
const username = 'YOUR_PRESTO_ACCOUNT_USERNAME';
const password = 'YOUR_PRESTO_ACCOUNT_PASSWORD';
prestoCard.getBalance(username, password)
.then(balance => console.log(`Your balance is ${balance}`))
.catch(e => console.log(`Error: ${e.message}`));
getBalance
is an async function. When called it returns a Promise.
yarn install
See https://github.com/GoogleChrome/puppeteer#debugging-tips.