{"id":22577147,"url":"https://github.com/incuca/text-mask-collection","last_synced_at":"2026-04-16T00:31:39.515Z","repository":{"id":130522991,"uuid":"127967334","full_name":"InCuca/text-mask-collection","owner":"InCuca","description":"Repository of pre-made input masks","archived":false,"fork":false,"pushed_at":"2018-11-13T16:18:03.000Z","size":178,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-04-26T18:46:42.679Z","etag":null,"topics":["mask","text-mask","vue"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/InCuca.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-04-03T20:50:43.000Z","updated_at":"2018-11-13T16:08:38.000Z","dependencies_parsed_at":null,"dependency_job_id":"33550d47-27be-40e1-ae9a-8d1aa594c916","html_url":"https://github.com/InCuca/text-mask-collection","commit_stats":null,"previous_names":["incuca/masks"],"tags_count":17,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/InCuca%2Ftext-mask-collection","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/InCuca%2Ftext-mask-collection/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/InCuca%2Ftext-mask-collection/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/InCuca%2Ftext-mask-collection/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/InCuca","download_url":"https://codeload.github.com/InCuca/text-mask-collection/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246059336,"owners_count":20717085,"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":["mask","text-mask","vue"],"created_at":"2024-12-08T04:11:59.261Z","updated_at":"2026-04-16T00:31:39.472Z","avatar_url":"https://github.com/InCuca.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# text-mask-collection\n[![Travis](https://img.shields.io/travis/InCuca/text-mask-collection/master.svg)](https://travis-ci.org/InCuca/text-mask-collection/branches) [![Code Climate](https://img.shields.io/codeclimate/coverage/InCuca/text-mask-collection.svg)](https://codeclimate.com/github/InCuca/text-mask-collection/test_coverage)\n[![Code Climate](https://img.shields.io/codeclimate/maintainability/InCuca/text-mask-collection.svg)](https://codeclimate.com/github/InCuca/loopback-chai/maintainability)\n\nRepository of pre-made input masks\n\nTo be used with [text-mask](https://github.com/text-mask/text-mask) with support for Vanilla, Vue, Angular, React and more.\n\n## Usage with Vue\n\nThe plugin exposes three properties `$mask`, `$unmask` and `$format` with functions mask/unmask and transform according each respective mask.\n\n```js\nimport Vue from 'vue';\nimport {VueTextMasks} from 'text-mask-collection';\nimport VueTextMask from 'vue-text-mask';\n\nVue.use(VueTextMasks);\n\nVue.component('m-input', VueTextMask);\n\nnew Vue({\n  template: `\n  \u003cdiv\u003eValue: {{$format.centimeters(rawValue)}}\u003c/div\u003e\n  \u003cm-input\n    :value=\"rawValue\"\n    :mask=\"$mask.centimeters\"\n    @input=\"rawValue = $unmask.centimeters($event) /\u003e\n  `,\n  data() {\n    return {rawValue: 100}\n  },\n});\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fincuca%2Ftext-mask-collection","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fincuca%2Ftext-mask-collection","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fincuca%2Ftext-mask-collection/lists"}