mozambique-utils
Version:
Easy to use parsers and validators for mozambican (🇲🇿) data-type formatted strings.
18 lines (17 loc) • 723 B
TypeScript
/**
* Checks whether a mozambican International Bank Account Number (IBAN)
* is valid through ISO 13616-compliant national IBAN format.
*
* Check constraints includes:
* - Starts with the country code MZ
* - Length of 25
* - Applies the check character system MOD 97-10 (see ISO 7064) - (hint: should be 1)!
*
* @see https://www.iso.org/standard/81090.html ISO-13616 Structure of the IBAN
* @see https://www.iso.org/standard/31531.html ISO-7064 IT - Security Techniques - Check character systems
*
* @param {string} iban the mozambican IBAN to check.
* @returns {boolean} true if valid, otherwise false.
*/
declare const isIBANValid: (iban: string) => boolean;
export default isIBANValid;