ibankit
A library for generation and validation of the International Bank Account Numbers (IBAN ISO_13616) and Business Identifier Codes (BIC ISO_9362).
Key Features
- Drop in replacable with iban-js
- Currently conformant with Version 80 of the IBAN registry
- Decodes bank, branch and account numbers from IBAN
- Supports random BBAN / IBAN generation for testing
- Has BIC validation as a bonus
- Supports validation of National Check Digits if part of BBAN format
- This library provides full TypesScript support
- No external dependancies
Iban quick examples:
const iban = new IbanBuilder()
.countryCode(CountryCode.AT)
.bankCode("19043")
.accountNumber("00234573201")
.build();
const iban = new IBAN("DE89370400440532013000");
const iban = IBAN("DE89 3704 0044 0532 0130 00");
const iban = IBAn.random(CountryCode.AT);
const iban = IBAN.random();
const iban = new IBAN.Builder()
.countryCode(CountryCode.AT)
.bankCode("19043")
.buildRandom();
IBAN.isValid("AT611904300234573201");
IBAN.isValid("DE89 3704 0044 0532 0130 00");
IBAN.isValid("hello world");
Bic quick examples:
const bic = BIC("DEUTDEFF");
BIC.isValid("DEUTDEFF500");
TODO
References
Credits
License
Copyright 2018 David Koblas
Licensed under the Apache License, Version 2.0: http://www.apache.org/licenses/LICENSE-2.0