There are a variety of configuration options available to both the toMoney and the toPattern methods in vanilla-masker that would be useful to expose. I'm thinking probably we simply extend the logic that looks at the value passed in, and if it is an object plucks off the value key as value and the rest as options.
I need this for a current client project so I will implement a fix and submit a PR.
There are a variety of configuration options available to both the
toMoney
and thetoPattern
methods invanilla-masker
that would be useful to expose. I'm thinking probably we simply extend the logic that looks at the value passed in, and if it is an object plucks off thevalue
key as value and the rest as options.I need this for a current client project so I will implement a fix and submit a PR.