Contains useful predefined mask factories you can use to create your own simple formatters.
Factory to create a mask where # is treated as any digit (0-9) and X represents any alphabetic character (a-z).
#
X
const phoneMask = formatters.utils.MASKS.AlphaNumeric('(###) ###-####');const asPhoneNumber = formatters.utils.withMask(String, phoneMask);console.log(asPhoneNumber(1234567890)); // '(123) 456-7890'
Contains useful predefined mask factories you can use to create your own simple formatters.