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
; async { // Initiate a new email instance. const tempEmail = ; // Get a random email address and let the lib handle the token stuff for you. const address = await tempEmail; // '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; // [emails] // Check details of a certain email if you know its id. const email = await tempEmail; // 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.gitcd disposable-guerrillamailnpm inpm run dev
Testing
npm test