Package Exports
- text-mask-addon-iban
- text-mask-addon-iban/dist/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (text-mask-addon-iban) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
install
npm i text-mask-addon-ibanapi
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} />
)