···11+# Contributing to Disposable Email Detector
22+33+We welcome and appreciate your contributions! Here's how you can get involved:
44+55+* **Updating Disposable Domains:** Help keep the `index.json` up-to-date. See [community resources for finding disposable domains]([https://github.com/ivolo/disposable-email-domains](https://github.com/ivolo/disposable-email-domains))
66+* **Reporting Issues:** If you find a bug, please open an issue with a clear description.
77+* **Code Improvements:** Feel free to suggest code enhancements or refactorings by submitting a pull request.
+3-2
index.js
···1414Object.defineProperty(exports, "__esModule", { value: true });
1515const promises_1 = __importDefault(require("fs/promises"));
1616const path_1 = __importDefault(require("path"));
1717+// Function to detect disposable email addresses
1718function disposableEmailDetector(email) {
1819 return __awaiter(this, void 0, void 0, function* () {
1920 try {
···2122 const disposableDomainsBuffer = yield promises_1.default.readFile(path_1.default.join(__dirname, 'index.json'));
2223 const disposableDomains = JSON.parse(disposableDomainsBuffer.toString());
2324 // Extract the domain from the email address
2424- const domain = email.split('@')[1].toLowerCase();
2525- // Check if the domain is in the list of disposable domains
2525+ const domain = email.split('@')[1].toLowerCase(); // Get the domain part of the email address and convert it to lowercase
2626+ // Check if the domain is in the list of disposable domains
2627 return disposableDomains.includes(domain);
2728 }
2829 catch (error) {