nz-bank-account-info-international-money-transfer

0.0.26 • Public • Published

nz-bank-account-info-international-money-transfer

NPM Version License: MIT Travis CI Test Coverage

A small JavaScript library to generate information needed for an international money transfer to a New Zealand bank account.

Getting Started

Using npm:

npm install --save nz-bank-account-info-international-money-transfer

Using yarn:

yarn add nz-bank-account-info-international-money-transfer

Usage

In Node.js (require):

const generator = require("nz-bank-account-info-international-money-transfer");
generator.generate("01-0001-0000002-000");

ES6 Modules:

import * as generator from "nz-bank-account-info-international-money-transfer";
generator.generate("01-0001-0000002-000");

Sample Output

The result of running generator.generate("01-0001-0000002-000"):

{
   "BSB":"010001",
   "IBAN":"0100010000002000",
   "SWIFT":"ANZBNZ22",
   "account":"0100010000002000",
   "bankAddress":"ANZ Bank New Zealand Ltd, Floor 10, 170-186 Featherston St, Wellington 6011, New Zealand",
   "bankName":"ANZ",
   "sortCode":"010001"
}

Running Tests

To run the tests locally:

npm install jest --global
npm install
npm run test
npm run lint

License

This project is licensed under the MIT License - see the LICENSE file for details.

Package Sidebar

Install

npm i nz-bank-account-info-international-money-transfer

Weekly Downloads

0

Version

0.0.26

License

MIT

Unpacked Size

14.3 kB

Total Files

4

Last publish

Collaborators

  • chris-pilcher