Contains useful predefined mask factories you can use to create your own simple formatters.
Constructs a new MaskFactory for use with withMask.
Each element should be an array of 2 items: the token string, and the predicate to run with the input character to see if it matches the token type.
A MaskFactory that can be invoked with a pattern to return a Mask instance.
Replaces the output of the inner formatter according to the given rules.
You can use a regular expression or string as your search criteria, and you can use a string or function to perform the replacement. See the MDN docs for details.
The format function whose output should be replaced.
The string or regular expression to match against the output.
The replacement logic. Either a string or function.
A format function that will perform the requested replacement.
Provides functionality to create custom formatters.