Renamed to henriquecbuss/elm-mask. It is published under that name, and new versions come out there.
Versions published as NeoVier/elm-mask still install under that name. 2 versions of 6 come from the new location (see their notes). 4 versions could not be recovered and cannot be installed.
Rerouted (renamed, verified). The GitHub user or repository was renamed. The tag is still there, at the new name. The Lamdera package server serves a copy recovered from https://github.com/henriquecbuss/elm-mask.
What we checked: The repo moved to github.com/henriquecbuss/elm-mask. Rebuilt with git archive from commit e020c8b9034b of https://github.com/henriquecbuss/elm-mask (zip prefix NeoVier-elm-mask-e020c8b/, America/Los_Angeles times): the zip is byte-identical to the one package.elm-lang.org recorded, SHA-1 7819731a56e061c38ac09a704070951cb33ab3b6.
The Lamdera compiler uses this copy and prints a one-line notice saying so. elm itself fails to download this version.
Details · package.elm-lang.org's zip: https://github.com/NeoVier/elm-mask/zipball/1.0.0/
Mask Strings to be used in input fields. Apply and remove masks so it's easy
to use in your update and view functions!
See an example in action on Ellie.
See more end-to-end example code in the examples/ folder.
Html.form []
[ Html.input
[ model.phoneNumber
-- You can also apply the mask on your `update` function
|> Mask.string { mask = "(##) #####-####", replace = '#' }
|> Html.Attributes.value
, Html.Events.onInput EnteredPhoneNumber
]
[]
, Html.input
[ model.price
|> Mask.float (Mask.Precisely 2)
|> Html.Attributes.value
, Html.Events.onInput EnteredExampleFloatInput
]
[]
]Just apply a mask on your input's value, and remove the mask before storing
the value on your backend!
Feel free to ask for help on the Elm Slack, in a channel or DMing me @Henrique Buss, any feedback is also welcome! And if you find any bugs, feel free to submit an issue!