New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

disposable-guerrillamail

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

disposable-guerrillamail

A simple wrapper on top of Guerrillamail REST API using TypeScript

  • 1.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

Disposable Email API Powered by Guerrillamail using TypeScript

A simple wrapper on top of Guerrillamail REST API using TypeScript, Promises, and Axios!

It should empower your team (development/QA) to cover E2E scenarios in more depth.

Check the Guerrillamail docs for more information here

How to install this module

npm i --save-dev disposable-guerrillamail

Example

import { Email } from 'disposable-guerrillamail';

(async () => {
  // Initiate a new email instance.
  const tempEmail = new Email();

  // Get a random email address and let the lib handle the token stuff for you.
  const address = await tempEmail.createEmailAccount(); // 'dbyziheu@guerrillamailblock.com'

  // You can specify a specific email to add more robustness to your tests!
  // const address = await tempEmail.createEmailAccount(`Faisal`); // 'Faisal@guerrillamailblock.com'

  // The initiated email is ready to receive messages...
  .
  .
  .

  // Check your inbox anytime.
  const emails = await tempEmail.getLatestEmails(); // [emails]

  // Check details of a certain email if you know its id.
  const email = await tempEmail.getEmailDetails('1'); // email

  .
  .
  .
  // Assert, manipulate and scrape the received email for whatever you need!
})();

How to run locally

Development
git clone git@github.com:Fghurayri/disposable-guerrillamail.git
cd disposable-guerrillamail
npm i
npm run dev
Testing
npm test

Keywords

FAQs

Package last updated on 15 Dec 2019

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