Which bank? A simple (but incomplete) API and CLI for a certain Australian bank.

npm install commbank
4 downloads in the last month

Which Bank? API


A simple (but incomplete) API to a certain Australian bank.

Use as an API or, install with npm install commbank -g and you get a CLI, commbank that will print some basic account summary info for you, including some recent transactions.

const commbank = require('commbank')

var clientNumber = 1235678
  , password     = 7890

commbank.login(clientNumber, password, function (err, data) {
  if (err) throw err

  data.AccountGroups.forEach(function (group) {
    group.ListAccount.forEach(function (account) {
      console.log('\n%s (%s):', account.AccountName, account.AccountNumber)
      console.log('\tBalance: %s', account.Balance)
      console.log('\tAvailable Funds: %s', account.AvailableFunds)


commbank is Copyright (c) 2013 Rod Vagg @rvagg and licenced under the MIT licence. All rights not explicitly granted in the MIT license are reserved. See the included LICENSE file for more details.

npm loves you