nz-bank-account-info-international-money-transfer
v0.0.26
Published
A lightweight JavaScript library to generate information needed for an International Money Transfer to your New Zealand bank account.
Downloads
33
Maintainers
Readme
nz-bank-account-info-international-money-transfer
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.