@arndesk/emailexists

1.0.0 • Public • Published

@arndesk/emailexists

A NodeJS library for checking if an email address exists without sending any email.

Get StartedInstallationUsageFeaturesContributingLicense

Get Started

Installation

Use npm to install this package:

npm install @arndesk/emailexists

Usage

Here's a basic example of how to use qed-mail in your code:


const { validateEmail } = require('@arndesk/emailexists');

// Async function to use the validateEmail function
async function main() {
  const sender = null; //Not Important to set anything
  const recipient = 'recipient@example.com';
  const checkValid = true; // If false, then only check Format and MX Records

  try {
    const result = await validateEmail(sender, recipient, checkValid);
    console.log(result);
  } catch (error) {
    console.error(error);
  }
}

main();


Features

  • Validates the format of an email address
  • Checks the MX records of the email domain
  • Performs further validity checks depending on the user's requirements
  • Can be used both as a standalone library or as a part of a larger project

Package Sidebar

Install

npm i @arndesk/emailexists

Weekly Downloads

1

Version

1.0.0

License

MIT

Unpacked Size

10.3 kB

Total Files

4

Last publish

Collaborators

  • arndesk