Skip to content

Node wrapper for creating and fetching temporary, disposable emails, as well as their new messages.

License

Notifications You must be signed in to change notification settings

Jon-Becker/node-temp-mail

Repository files navigation

node-temp-mail

Node wrapper for creating and fetching temporary, disposable emails, as well as their new messages.

Installation

npm install node-temp-mail

Usage

const TempMail = require("node-temp-mail");

// Let's create an address object so it can be accessed by the module.
const address = new TempMail("testAddress");

// We already have the address object, so now let's access it and get a list of the emails in a nice & neat json object.
address.fetchEmails((err, body) => {
  console.log(body);
});

// Or we can use the async/await syntax
const body = await address.fetchEmails();

// If for any reason you need to see the full temporary email address, you can use the following function.
address.getAddress();

About

Node wrapper for creating and fetching temporary, disposable emails, as well as their new messages.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published