email-provider

1.0.1 • Public • Published

Email provider service detector

Detect Provider's Service name by email address

team@youtube.com -> { name: 'Gmail', url: 'https://googlemail.com' }
test@kinopoisk.ru -> { name: 'Яндекс', url: 'https://yandex.ru' }
 

How it words

  1. Fetching DNS MX records for email address
  2. Find MX host at the free email services datastore, collected by freemail
  3. Find Service product name by its hostname (googlemail.com -> Gmail)

Usage

Install

npm i --save email-provider

or

yarn add email-provider

Connect and call

const emailProvider = require('email-provider');
 
let email = 'test@google.com';
 
emailProvider.get(email)
     .then( service => {
       console.log(service.name); // Gmail
       console.log(service.url); // https://googlemail.com
     })
     .catch( error => {
       console.log('Email provider was not reached:', error);
     })

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.1
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.1
    1
  • 1.0.0
    0

Package Sidebar

Install

npm i email-provider

Weekly Downloads

1

Version

1.0.1

License

MIT

Unpacked Size

388 kB

Total Files

52

Last publish

Collaborators

  • codex-team