Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

temporary-email-address-validator

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

temporary-email-address-validator

Temporary / Disposable Email Address Validator for Node.JS

  • 1.0.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
4
decreased by-80%
Maintainers
1
Weekly downloads
 
Created
Source

Temporary Email Address Validator Node.js

As a owner or web master you wouldn’t really want someone anonymously utilizing your website or campaign benefits. So You really want to prevent using temporary email addresses on website. So this Node Module was created in an attempt to make a collection of disposable email addresses and validate signups against with the list of temporary email providers.

Install the node package : npm i temporary-email-address-validator

Example

var express = require('express');
var bodyParser = require('body-parser');
var disposableEmail = require('temporary-email-address-validator');

var app = express();
app.use(bodyParser.json());
app.use(bodyParser.urlencoded({ extended: false }));

app.get('/', function(req, res){

  var html = '<form action="/" method="post">' +
               'Enter your name:' +
               '<input type="email" name="EmailAddress" placeholder="..." />' +
               '<br>' +
               '<button type="submit">Check</button>' +
            '</form>';
               
  res.send(html);
});

app.post('/', function(req, res){
  var EmailAddress = req.body.EmailAddress;
  var result = disposableEmail.validate(EmailAddress), result_text ="OK";
  if (!result){
    result_text = "Alert!!";
  }
  var html = 'Email: ' + EmailAddress + ': '+result_text+'<br>' +
             '<a href="/">Try again.</a>';
  res.send(html);
});

app.listen(3000);

Run with node app.js

#Documentation Temporary Email Address Validator

Looking for PHP / Java script / Python version of this plugin?

Temporary Email Address Validator

Keywords

FAQs

Package last updated on 19 Jul 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc