Trollmail detector is a RESTful API that validates e-mail addresses and compares and compares the domain they're associated with against a list of known throwaway e-mail provider domains.
- Install dependencies by running
npm install
from the root directory. - Run
echo PORT={PORT NUMBER} > .env
(replace {PORT NUMBER} with a port number). - Run
yarn start
to start the server.
- Optional but highly recommended: Install pm2 and start the service by running
pm2 start src/app.js
.
Request:
{
"email": "gordon.freeman@bmrf.com"
}
Response:
{
"email": "gordon.freeman@bmrf.com",
"status": "Valid"
}
Request:
{
"email": "gordon.freeman#bmrf.com"
}
Response:
{
"email": "gordon.freeman#bmrf.com",
"status": "NotAnEmail"
}
Request:
{
"email": "gordon.freeman@sharklasers.com"
}
Response:
{
"email": "gordon.freeman@sharklasers.com",
"status": "Blacklisted"
}