Skip to content

Latest commit

 

History

History
28 lines (17 loc) · 799 Bytes

README.md

File metadata and controls

28 lines (17 loc) · 799 Bytes

EmailChecker

A simple way to check if an email exists! You can also check the domain of the email with the second parameter. Warning: Port 25 must be allowed! (Or email checks return false)

Installation

npm i @epiccarlito/emailchecker

TypeScript

import { checkEmail } from "@epiccarlito/emailchecker";

JavaScript

const { checkEmail } = require("@epiccarlito/emailchecker");

Example Code

async function main() {
	let result = await checkEmail("exampleemail@gmail.com", "gmail.com");
	return result;
}
main(); // Returns false

Original Concept

Inspired by email-existence. Both packages check the codes of the MX server to identify if an email address accepts emails and exists.