{"id":18881979,"url":"https://github.com/henriquecbuss/elm-mask","last_synced_at":"2025-12-11T20:56:07.977Z","repository":{"id":57674668,"uuid":"400666198","full_name":"henriquecbuss/elm-mask","owner":"henriquecbuss","description":"Mask Strings to be used in Elm input fields","archived":false,"fork":false,"pushed_at":"2022-10-19T19:18:25.000Z","size":28,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-12-31T03:42:07.334Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Elm","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/henriquecbuss.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-08-28T00:31:27.000Z","updated_at":"2022-10-19T19:16:13.000Z","dependencies_parsed_at":"2022-09-11T18:02:30.709Z","dependency_job_id":null,"html_url":"https://github.com/henriquecbuss/elm-mask","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":"dillonkearns/elm-package-starter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/henriquecbuss%2Felm-mask","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/henriquecbuss%2Felm-mask/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/henriquecbuss%2Felm-mask/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/henriquecbuss%2Felm-mask/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/henriquecbuss","download_url":"https://codeload.github.com/henriquecbuss/elm-mask/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239850447,"owners_count":19707348,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-08T06:53:20.548Z","updated_at":"2025-12-11T20:56:02.925Z","avatar_url":"https://github.com/henriquecbuss.png","language":"Elm","funding_links":[],"categories":[],"sub_categories":[],"readme":"# henriquecbuss/elm-mask\n\n[![Build Status](https://github.com/henriquecbuss/elm-mask/workflows/CI/badge.svg)](https://github.com/henriquecbuss/elm-mask/actions?query=branch%3Amain) [![Elm package](https://img.shields.io/elm-package/v/henriquecbuss/elm-mask.svg)](https://package.elm-lang.org/packages/henriquecbuss/elm-mask/latest/)\n\nMask `String`s to be used in input fields. Apply and remove masks so it's easy\nto use in your update and view functions!\n\nSee an [example in action on Ellie](https://ellie-app.com/fjCBtqtVY8Ma1).\n\nSee more end-to-end example code in the `examples/` folder.\n\n## Overview\n\n```elm\nHtml.form []\n    [ Html.input\n        [ model.phoneNumber\n            -- You can also apply the mask on your `update` function\n            |\u003e Mask.string { mask = \"(##) #####-####\", replace = '#' }\n            |\u003e Html.Attributes.value\n        , Html.Events.onInput EnteredPhoneNumber\n        ]\n        []\n    , Html.input\n        [ model.price\n            |\u003e Mask.float (Mask.Precisely 2)\n                { decimalSeparator = \",\", thousandsSeparator = \".\" }\n            |\u003e Html.Attributes.value\n        , Html.Events.onInput EnteredExampleFloatInput\n        ]\n        []\n    ]\n```\n\n## Usage\n\nJust apply a mask on your input's `value`, and remove the mask before storing\nthe value on your backend!\n\n## Learning Resources\n\nFeel free to ask for help on the [Elm Slack](https://elmlang.herokuapp.com/),\nin a channel or DMing me @Henrique Buss, any feedback is also welcome! And if\nyou find any bugs, feel free to submit an issue!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhenriquecbuss%2Felm-mask","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhenriquecbuss%2Felm-mask","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhenriquecbuss%2Felm-mask/lists"}