Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

email_generator

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

email_generator

  • 0.3.1
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

Email-Generator

EmailGenerator is a Ruby library for generating random email addresses. It provides functionality to customize domains and username lengths, making it a useful tool for testing and other scenarios where random email addresses are needed.

Usage

To use the module, simply require it and call the generate_email or generate_emails method:'

Generate a single email with default settings

email = EmailGenerator.generate_email puts email # Example output: "abc12345@gmail.com"

Generate multiple emails

emails = EmailGenerator.generate_emails(10) puts emails # Example output: ["abc12345@gmail.com", "def67890@gmail.com", ...]

Generate multiple emails with custom domains and username length

emails = EmailGenerator.generate_emails(5, domains: ['custom.com', 'example.org'], username_length: 12) puts emails # Example output: ["abc12345abcd@custom.com", "def67890abcd@example.org", ...]

FAQs

Package last updated on 23 Aug 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

  • 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