UNPKG

rendrr-disposable-email-list

Version:

Disposable email checker, Wide range of disposable email providers list

82 lines (57 loc) 3.39 kB
# Disposable Email List ![](https://badge.fury.io/js/rendrr-disposable-email-list.svg) ![](https://img.shields.io/github/issues/rakcode/rendrr-disposable-email-list) ![](https://img.shields.io/github/forks/rakcode/rendrr-disposable-email-list) ![](https://img.shields.io/github/stars/rakcode/rendrr-disposable-email-list) ![](https://img.shields.io/github/license/rakcode/rendrr-disposable-email-list?logoColor=apache) Hunt down every disposable email. Probabily the most reliable email check which can detect disposable email and trash them out of your marketing database, So you don't end up paying for un-neccesary junk. Check with the list of more than **38,000** temp email provider domains for the validation. We update the list frequently, Help us getting stronger. Contribute to our [GitHub](https://github.com/rakcode/rendrr-disposable-email-list "GitHub") repository to keep the list up-to-date. ## Install `npm i rendrr-disposable-email-list` ## Methods Import the module to the file var disposableEmail = require('rendrr-disposable-email-list'); #### Standard Method var result = disposableEmail.isDisposable('dummy@temp-email.tld'); or you can use domain name also var result = disposableEmail.isDisposable('temp-email.tld'); #### Standard Response format { isEmail: true, //or false isDomain: false, //or true isDisposable: false //or true isWebmail: false //or true } ## Additional Methods ### isValidEmail ###### Checking the string with Regular Expression You can check the given string is a valid **email** with ignoring other test cases. you can provide either domain name or email address to validate let res = this.isValidEmail("dummy@temp-email.tld"); #### Response Format ###### Success { isEmail: true } ###### Error { isEmail: false } ### isValidDomain ###### Checking the string with Regular Expression You can check the given string is a valid **domain** with validating whether its a valid email or not. you can provide either domain name or email address to validate let res = this.isValidDomain("dummy@temp-email.tld"); // or let res = this.isValidDomain("temp-email.tld"); #### Response Format { isEmail: true, isDomain: true } ### isValidWebmail ###### Checking the string with Regular Expression and compare our list You can check the given string is a valid **domain** with validating whether its a valid email and **webmail** or not. you can provide either domain name or email address to validate. let res = this.isValidWebmail("dummy@temp-email.tld"); // or let res = this.isValidWebmail("temp-email.tld"); #### Response Format { isEmail: true, isDomain: true, isWebmail: true } #License Copyright 2019 Rendrr Devign Labs Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.