# Email Dot Generator
This Node.js program generates possible email addresses by inserting dots at various positions in the local part (before the "@") of the email. The generated emails are saved to a file named `emaillist.txt`.
## Features
- Generate email combinations by adding dots step-by-step from the end of the local part.
- Control the number of generated results via command-line arguments.
- Default to generating 10 results if no number is specified.
## Prerequisites
- Node.js installed on your system.
## Installation
1. Clone the repository or download the script.
2. Navigate to the directory containing `generateEmails.js`.
## Usage
To run the program and save the generated emails to `emaillist.txt`, use the following command:
```bash
node generateEmails.js [email protected] [maxResults]
Replace [email protected]
with the actual email address you want to process and [maxResults]
with the desired number of results. If you omit [maxResults]
, the program will generate up to 10 unique combinations by default.
-
Generate up to 10 email combinations (default):
node generateEmails.js [email protected]
-
Generate up to 50 email combinations:
node generateEmails.js [email protected] 50
- The script splits the email into the local part (before the "@") and the domain part (after the "@").
- It recursively inserts dots into the local part, starting from the end and moving towards the beginning.
- It ensures that the number of generated emails does not exceed the specified limit.
- The generated emails are saved to
emaillist.txt
.
- The script will display an error message and exit if the provided email address is invalid or if
maxResults
is not a positive number.
For an email [email protected]
, possible generated emails might include:
Note: The exact output will depend on the length of the local part and the specified maxResults
.
This project is licensed under the MIT License - see the LICENSE file for details.