email-providers

    2.0.0 • Public • Published

    email-providers

    A list of common eMail providers. Thanks to @goware!

    npm version ISC-licensed support me via GitHub Sponsors chat with me on Twitter

    The npm package (not this Git repo) contains the following data:

    • roughly 8k domains of email providers in all.json, and
    • roughly 360 with a Majestic Million rank of < 100000 in common.json.

    Installing

    npm install email-providers

    Usage

    The package published to npm contains two files all.json and common.json. The index.js entrypoint also exports all.json.

    // use ES Modules with import assertions if your environment already supports them
    // https://github.com/tc39/proposal-import-assertions
    import all from 'email-providers/all.json' assert {type: 'json'}
    import common from 'email-providers/common.json' assert {type: 'json'}
    import alsoAll from 'email-providers'
    
    // alernatively, use module.createRequire
    import {createRequire} from 'module'
    const require = createRequire(import.meta.url)
    
    // in a CommonJS environment, you can use require right away, of course
    const all = require('email-providers/all.json')
    const common = require('email-providers/common.json')
    
    all.length    // 4149
    common.length // 312
    all[0]        // 1033edge.com
    common[0]     // yahoo.com

    Contributing

    If you have a question, found a bug or want to propose a feature, have a look at the issues page.

    Install

    npm i email-providers

    DownloadsWeekly Downloads

    4,362

    Version

    2.0.0

    License

    ISC

    Unpacked Size

    146 kB

    Total Files

    6

    Last publish

    Collaborators

    • derhuerst