{"id":18888093,"url":"https://github.com/codex-team/email-provider","last_synced_at":"2025-04-14T23:11:59.413Z","repository":{"id":57222821,"uuid":"147368382","full_name":"codex-team/email-provider","owner":"codex-team","description":"Detect email provider by address","archived":false,"fork":false,"pushed_at":"2018-09-06T13:25:41.000Z","size":431,"stargazers_count":46,"open_issues_count":1,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-14T23:11:41.285Z","etag":null,"topics":["email","email-providers","mx","subscribe-email"],"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/codex-team.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":"2018-09-04T15:33:22.000Z","updated_at":"2024-12-07T07:45:04.000Z","dependencies_parsed_at":"2022-09-05T07:00:38.147Z","dependency_job_id":null,"html_url":"https://github.com/codex-team/email-provider","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codex-team%2Femail-provider","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codex-team%2Femail-provider/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codex-team%2Femail-provider/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codex-team%2Femail-provider/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codex-team","download_url":"https://codeload.github.com/codex-team/email-provider/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248975328,"owners_count":21192210,"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":["email","email-providers","mx","subscribe-email"],"created_at":"2024-11-08T07:42:10.883Z","updated_at":"2025-04-14T23:11:59.391Z","avatar_url":"https://github.com/codex-team.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Email provider service detector \n\n![](https://flat.badgen.net/npm/v/email-provider)\n\nDetect Provider's Service name by email address\n\n```js\nteam@youtube.com -\u003e { name: 'Gmail', url: 'https://googlemail.com' }\ntest@kinopoisk.ru -\u003e { name: 'Яндекс', url: 'https://yandex.ru' }\n\n```\n\n## Why\n\nIt can be useful for improving User Experience after entering an email address:\n \n1) User enters an email address\n2) You have sent confirmation email to him\n3) On the same place, you can show `Open Gmail|Yahoo|Яндекс|etc` button  \n\n![](assets/demo.gif) \n\n## How it words\n\n1. Fetching DNS MX records for email address\n2. Find MX host at the free email services datastore, collected by [freemail](https://github.com/willwhite/freemail/blob/master/data/free.txt)\n3. Find Service product name by its hostname (`googlemail.com` -\u003e `Gmail`) \n\n## Usage\n\n### Install\n\n```js\nnpm i --save email-provider\n```\n\nor\n\n```js\nyarn add email-provider\n```\n\n### Connect and call\n\n```js \nconst emailProvider = require('email-provider');\n\nlet email = 'test@google.com';\n\nemailProvider.get(email)\n     .then( service =\u003e {\n       console.log(service.name); // Gmail\n       console.log(service.url); // https://googlemail.com\n     })\n     .catch( error =\u003e {\n       console.log('Email provider was not reached:', error);\n     })\n```\n\n## License \n\nMIT","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodex-team%2Femail-provider","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodex-team%2Femail-provider","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodex-team%2Femail-provider/lists"}