{"id":15764649,"url":"https://github.com/ctf0/mailcheck-vue","last_synced_at":"2025-05-07T13:25:38.738Z","repository":{"id":84058276,"uuid":"141343044","full_name":"ctf0/mailcheck-vue","owner":"ctf0","description":"https://github.com/mailcheck/mailcheck port for vue","archived":false,"fork":false,"pushed_at":"2023-01-03T23:04:35.000Z","size":9,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-10-11T12:18:16.744Z","etag":null,"topics":[],"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/ctf0.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"github":"ctf0"}},"created_at":"2018-07-17T20:59:42.000Z","updated_at":"2024-05-31T20:48:05.000Z","dependencies_parsed_at":null,"dependency_job_id":"2667619a-4e8c-4b1e-8377-e89a07e21b1a","html_url":"https://github.com/ctf0/mailcheck-vue","commit_stats":{"total_commits":15,"total_committers":2,"mean_commits":7.5,"dds":"0.33333333333333337","last_synced_commit":"14bb62b3a071c478884382c9c1119b0d555e44f9"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ctf0%2Fmailcheck-vue","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ctf0%2Fmailcheck-vue/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ctf0%2Fmailcheck-vue/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ctf0%2Fmailcheck-vue/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ctf0","download_url":"https://codeload.github.com/ctf0/mailcheck-vue/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246450687,"owners_count":20779464,"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-10-04T12:04:20.287Z","updated_at":"2025-03-31T10:21:58.590Z","avatar_url":"https://github.com/ctf0.png","language":"Vue","funding_links":["https://github.com/sponsors/ctf0"],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\" style=\"border: none\"\u003e\n    mailcheck-vue\n    \u003cbr\u003e\n    \u003ca href=\"https://www.npmjs.com/package/mailcheck-vue\"\u003e\u003cimg src=\"https://img.shields.io/npm/v/mailcheck-vue.svg?style=for-the-badge\" alt=\"npm\" /\u003e\u003c/a\u003e \u003ca href=\"https://www.npmjs.com/package/mailcheck-vue\"\u003e\u003cimg src=\"https://img.shields.io/npm/dt/mailcheck-vue.svg?style=for-the-badge\" alt=\"npm\" /\u003e\u003c/a\u003e\n\u003c/h1\u003e\n\n## Installation\n\n```bash\nnpm install mailcheck-vue --save\n```\n\n## Usage\n\n- register the component\n\n    ```js\n    window.Vue = require('vue')\n\n    Vue.component('MailCheck', require('mailcheck-vue').default)\n    ```\n\n- now use it like\n    ```html\n    \u003cmail-check\n        model-name=\"email\"\n        :data=\"email\"\n        :domains=\"['gmail.com', 'aol.com']\"\n        :topLevelDomains=\"['com', 'net', 'org']\"\n        :secondLevelDomains=\"['hotmail']\"\n        :distanceFunction=\"someFunction\"\u003e\n\n        \u003cspan\u003eDid you Mean\u003c/span\u003e\n    \u003c/mail-check\u003e\n    ```\n\n    |        prop        |      required      |   type   |           default            |                description                |\n    |--------------------|--------------------|----------|------------------------------|-------------------------------------------|\n    | modelName          | :white_check_mark: | string   |                              | the v-model key we should update on click |\n    | data               | :white_check_mark: | string   |                              | the v-model value we want to check        |\n    | domains            | :x:                | array    | Mailcheck.domains            | [mailcheck][docs]                         |\n    | topLevelDomains    | :x:                | array    | Mailcheck.topLevelDomains    | [mailcheck][docs]                         |\n    | secondLevelDomains | :x:                | array    | Mailcheck.secondLevelDomains | [mailcheck][docs]                         |\n    | distanceFunction   | :x:                | function | Mailcheck.sift4Distance      | [mailcheck][docs]                         |\n\n[docs]: https://github.com/mailcheck/mailcheck/blob/master/src/mailcheck.js\n\n\u003e \\# Why we need both `data` \u0026 `modelName` ? \u003cbr\u003e\n\u003e to update the parent v-model without the need to use an EventBus, if someone have a better idea am all :ear:.\n\n- to style the result, use `mail-check` ex.\n    ```css\n    .mail-check {\n        cursor: pointer;\n        color: red;\n    }\n    ```\n\n### Security\n\nIf you discover any security-related issues, please email [ctf0-dev@protonmail.com](mailto:ctf0-dev@protonmail.com).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fctf0%2Fmailcheck-vue","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fctf0%2Fmailcheck-vue","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fctf0%2Fmailcheck-vue/lists"}