{"id":42377021,"url":"https://github.com/xdimedrolx/vue-input-mask","last_synced_at":"2026-01-27T20:51:19.098Z","repository":{"id":26876321,"uuid":"111533485","full_name":"xdimedrolx/vue-input-mask","owner":"xdimedrolx","description":"Yet another Vue component for input masking","archived":false,"fork":false,"pushed_at":"2022-12-10T20:31:18.000Z","size":973,"stargazers_count":17,"open_issues_count":23,"forks_count":6,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-09-28T06:29:42.120Z","etag":null,"topics":["mask","maskedinput","vue"],"latest_commit_sha":null,"homepage":null,"language":"Vue","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/xdimedrolx.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":"2017-11-21T10:22:58.000Z","updated_at":"2025-09-11T06:08:31.000Z","dependencies_parsed_at":"2022-08-26T15:41:10.061Z","dependency_job_id":null,"html_url":"https://github.com/xdimedrolx/vue-input-mask","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/xdimedrolx/vue-input-mask","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xdimedrolx%2Fvue-input-mask","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xdimedrolx%2Fvue-input-mask/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xdimedrolx%2Fvue-input-mask/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xdimedrolx%2Fvue-input-mask/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xdimedrolx","download_url":"https://codeload.github.com/xdimedrolx/vue-input-mask/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xdimedrolx%2Fvue-input-mask/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28822159,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-27T18:44:20.126Z","status":"ssl_error","status_checked_at":"2026-01-27T18:44:09.161Z","response_time":168,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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","maskedinput","vue"],"created_at":"2026-01-27T20:51:18.469Z","updated_at":"2026-01-27T20:51:19.093Z","avatar_url":"https://github.com/xdimedrolx.png","language":"Vue","funding_links":[],"categories":[],"sub_categories":[],"readme":"# vue-input-mask\n\nYet another Vue component for input masking. Based on [react-input-mask](https://github.com/sanniassin/react-input-mask).\n\n#### [Demo](http://sanniassin.github.io/react-input-mask/demo.html)\n\n## Install\n```\nyarn add vue-input-mask\nor\nnpm i -S vue-input-mask\n```\n\n## Properties\n### `mask` : `string`\n\nMask string. Default format characters are:\u003cbr/\u003e\n`9`: `0-9`\u003cbr/\u003e\n`a`: `A-Z, a-z`\u003cbr/\u003e\n`*`: `A-Z, a-z, 0-9`\n\nAny character can be escaped with a backslash. It will appear as a double backslash in JS strings. For example, a German phone mask with unremoveable prefix +49 will look like \u003ccode\u003emask=\"+4\\\\9 99 999 99\"\u003c/code\u003e or \u003ccode\u003emask={'+4\\\\\\\\9 99 999 99'}\u003c/code\u003e\n\n### `maskChar` : `string`\n\nCharacter to cover unfilled parts of the mask. Default character is \"\\_\". If set to null or empty string, unfilled parts will be empty as in ordinary input.\n\n### `formatChars` : `object`\n\nDefines format characters with characters as a keys and corresponding RegExp strings as a values. Default ones:\n```js\n{\n  '9': '[0-9]',\n  'a': '[A-Za-z]',\n  '*': '[A-Za-z0-9]'\n}\n```\n\n### `alwaysShowMask` : `boolean`\n\nShow mask when input is empty and has no focus.\n\n## Example\n```js\nimport Vue from 'vue';\nimport InputMask from 'vue-input-mask';\n\nVue.component('input-mask', InputMask)\n```\n\nIn template:\n```html\n    \u003cinput-mask v-model=\"value\" mask=\"+4\\9 99 999 99\" maskChar=\" \"\u003e\u003c/input-mask\u003e\n```\n\n## Todo\n- [ ] Refactoring\n- [ ] Tests\n- [ ] Implementation of `componentWillReceiveProps`\n\n## Thanks\nThanks @sanniassin for the awesome component","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxdimedrolx%2Fvue-input-mask","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxdimedrolx%2Fvue-input-mask","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxdimedrolx%2Fvue-input-mask/lists"}