npm i text-mask-addon-iban
createIBANMask(country)
- creates mask- country: Alpha-2 country code
example (React)
// IbanInput.js
import React from 'react'
import MaskedInput from 'react-text-mask'
import createIBANMask from 'text-mask-addon-iban'
const ibanMask = createIBANMask('GB') // United Kingdom of Great Britain and Northern Ireland
export default (props) => (
<MaskedInput mask={ibanMask} {...props} />
)