How to use the ibantools.electronicFormatIBAN function in ibantools

To help you get started, we’ve selected a few ibantools examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github NationalBankBelgium / stark / packages / stark-core / src / validation / validators / is-iban / is-iban.validator.fn.ts View on Github external
export function starkIsIBAN(iban: string): boolean {
	if (typeof iban === "string") {
		// Since v2.0.0 of ibantools, isValidIBAN() is false if there is " " in the verified IBAN
		return isValidIBAN(electronicFormatIBAN(iban));
	return false;


Validation, extraction and creation of IBAN, BBAN, BIC/SWIFT numbers plus some other helpful stuff like ISO 3136-1 alpha 2 country list

MIT or MPL-2.0
Latest version published 2 months ago

Package Health Score

86 / 100
Full package analysis