import IBAN from 'iban';
import { Country } from 'iban/lib/helpers/Country.js';
const ibanObj = new IBAN(Country.SK);
ibanObj.isValid('SK3112000000001987426375');
ibanObj.parse('SK59 1100 0000 0012 3456 7890');
- n - digits (numeric characters 0 to 9 only);
- a - upper-case letters (alphabetic characters A-Z only); or
- c - upper- and lower-case alphanumeric characters (A-Z, a-z and 0-9);
- e - blank space.
- nn! - fixed length;
- nn - maximum length