You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

fake-mail-generator

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fake-mail-generator

A Node.js module to interact with fakemailgenerator.com.

1.0.7
latest
Source
npmnpm
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

FakeMail Generator Node.js Module

A lightweight Node.js module designed as an API for interacting with the Fake Mail Generator website.

Simplify the generation of random emails, retrieval of inbox details, and monitoring of incoming emails with ease.

Features

  • Quickly generate random emails or set your own email name.
  • Retrieve inbox details for a specific email.
  • Watch for incoming emails at specified intervals.

Installation

Install the module via npm:

npm install fake-mail-generator-node
const FMG = require('fake-mail-generator-node');

// Create an instance of FMG
const fmgInstance = new FMG({ name: 'your_random_mail_name', refreshInterval: 5000 });

// Generate an email
fmgInstance.generateEmail().then((generatedEmail) => {
  console.log(`Generated Email: ${generatedEmail}`);
    
  // Watch the generated email
  fmgInstance.watch(generatedEmail).then(() => {
    console.log('Watching for emails...');
  }).catch((error) => {
    console.error('Error while watching:', error.message);
  });
}).catch((error) => {
  console.error('Error while generating email:', error.message);
});

Contributing

Contributions are welcome! If you find a bug, have a feature request, or want to contribute in any way, feel free to open an issue or submit a pull request.

License

This project is licensed under the MIT License - see the LICENSE.md file for details.

Acknowledgments

We acknowledge the Fake Mail Generator website (https://www.fakemailgenerator.com/) for providing a valuable service. This module is designed as an API to enhance the user experience with their service.

Keywords

fake

FAQs

Package last updated on 02 Jan 2024

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.