Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including email-provider with all npm packages installed. Try it out:

var emailProvider = require("email-provider")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

email-provider v1.0.1

Detect email provider by email address

Email provider service detector

Detect Provider's Service name by email address -> { name: 'Gmail', url: '' } -> { name: 'Яндекс', url: '' }

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 ( -> Gmail)



npm i --save email-provider


yarn add email-provider

Connect and call

const emailProvider = require('email-provider');

let email = '';

     .then( service => {
       console.log(; // Gmail
       console.log(service.url); //
     .catch( error => {
       console.log('Email provider was not reached:', error);
RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free