Giter Site home page Giter Site logo

temp-mail-detector's Introduction

Temp Mail Detector

Build Status npm version

This is a Node.js module to detect temporary email addresses. It helps developers prevent bots from creating multiple user accounts utilzing those addresses.

This software is still being developed and updates will be published on this document. In the meantime, ideas and suggestions for improvements and fixes are welcome.

Installation

To install this package, run npm install --save temp-mail-detector or npm i -S temp-mail-detector

Example Usage

The code below shows how to use this package to detect temporary email addresses

const detector = require("temp-mail-detector");

(async function() {
  const email = "[email protected]";
  const result = await detector.isTempMail(email);
  console.log(result); // returns true or false
})();

Run from Source

To run this project, you need the following software installed; git, node and npm. NPM usually comes bundled together in the Node.Js installer. After you have installed them, follow the steps below to run this project.

  • Clone the project git clone https://github.com/IkechukwuAKalu/temp-mail-detector.git
  • Navigate to the project root directory in your terminal
  • Install dependencies npm i
  • Build the project npm run build
  • Run the project npm start

NOTE: The command, npm run build, enables Typescript watch on .ts files. To run the project, you have to open a new terminal session still at the project root directory.

Run Tests

Tests have been included in this project to ensure everything works as expected.

  • To run tests for this project, npm test or npm run test-watch to watch files for modifications
  • To generate a test coverage report, npm run coverage

====

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.