···11+# Disposable Email Detector
22+33+[](https://codescene.io/projects/50926)
44+
55+[](https://www.bestpractices.dev/projects/8456)
66+
77+88+## Overview
99+1010+The `disposable-email-detector` is a TypeScript utility designed to identify disposable email addresses, providing developers with a tool to enhance email verification processes.
1111+1212+## Features
1313+1414+- **Domain Check:** Identifies if an email address belongs to a known disposable email domain.
1515+- **Error Handling:** Offers informative messages for scenarios like missing `index.json` or invalid JSON format.
1616+- **Async File Reading:** Utilizes asynchronous file reading for improved performance.
1717+1818+## Getting Started
1919+2020+### Prerequisites
2121+2222+- Node.js
2323+- npm
2424+2525+### Installation
2626+2727+1. Clone the repository.
2828+2. Install dependencies:
2929+3030+ ```bash
3131+ npm install
3232+3333+### Implementation Details
3434+3535+The disposableEmailDetector function reads a list of disposable email domains from index.json. It checks whether the provided email address belongs to a disposable domain and returns a boolean indicating the result.
3636+3737+### Error Handling
3838+3939+If index.json is not found, the script informs you to create it with disposable domains.
4040+If index.json has an invalid JSON format, it prompts you to correct the file.
4141+Unexpected errors are logged to the console.