{"id":29673053,"url":"https://github.com/notchris/payload-mask-plugin","last_synced_at":"2025-07-22T21:09:45.066Z","repository":{"id":243321939,"uuid":"812111820","full_name":"notchris/payload-mask-plugin","owner":"notchris","description":"An input mask plugin for Payload","archived":false,"fork":false,"pushed_at":"2024-07-20T01:35:02.000Z","size":255,"stargazers_count":15,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-07-19T22:22:56.170Z","etag":null,"topics":["imaskjs","input-masking","payload-plugin","payloadcms","regex"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/payload-mask-plugin","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/notchris.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-06-08T01:54:30.000Z","updated_at":"2025-06-10T00:38:13.000Z","dependencies_parsed_at":"2024-06-08T02:45:56.362Z","dependency_job_id":"bb48b3ba-4e64-4fcf-a6ec-1eb74062e2f4","html_url":"https://github.com/notchris/payload-mask-plugin","commit_stats":null,"previous_names":["notchris/payload-mask-plugin"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/notchris/payload-mask-plugin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/notchris%2Fpayload-mask-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/notchris%2Fpayload-mask-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/notchris%2Fpayload-mask-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/notchris%2Fpayload-mask-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/notchris","download_url":"https://codeload.github.com/notchris/payload-mask-plugin/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/notchris%2Fpayload-mask-plugin/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266573274,"owners_count":23950189,"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","status":"online","status_checked_at":"2025-07-22T02:00:09.085Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"robots_txt_url":"https://github.com/robots.txt","online":true,"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":["imaskjs","input-masking","payload-plugin","payloadcms","regex"],"created_at":"2025-07-22T21:09:44.143Z","updated_at":"2025-07-22T21:09:45.051Z","avatar_url":"https://github.com/notchris.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Payload Mask Plugin\n#### Adds input masking to [Payload](https://payloadcms.com/).\n\n![image](https://github.com/notchris/payload-mask-plugin/blob/main/example.gif?raw=true)\n\n### Features:\n\n- Input masking using  [IMask](https://github.com/uNmAnNeR/imaskjs/tree/master?tab=readme-ov-file)\n\n\n## Basic Usage\n\nInstall the plugin and use on a text field in a Collection or Global.\n\n## Installation\n\n```bash\nyarn add payload-mask-plugin\n```\n\n\n```ts\n// payload.config.ts\nimport { maskPlugin } from 'payload-mask-plugin'\n\nexport default buildConfig({\n  ...\n  plugins: [maskPlugin({ enabled: true })],\n})\n```\n\n```ts\n// Add to a text field on a Collection or Global\n\nconst Examples: CollectionConfig = {\n  slug: \"examples\",\n  fields: [\n    {\n      type: \"text\",\n      name: \"example_mask\",\n      label: \"Input Mask Example\",\n      placeholder: \"Enter a US phone number\"\n\n      custom: {\n        mask: \"+{1}(000)000-00-00\",\n        showValue: true,\n        saveMaskedValue: false\n      },\n    },\n  ],\n};\n\nexport default Examples;\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnotchris%2Fpayload-mask-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnotchris%2Fpayload-mask-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnotchris%2Fpayload-mask-plugin/lists"}