Getting Started
To install the Node.js email verification SDK, run npm install @ev-ecomtechbd/node in your project directory. The package supports both CommonJS (require) and ES Modules (import) out of the box, with full TypeScript type definitions included. The SDK requires Node.js 14 or higher and has zero production dependencies, keeping your bundle size minimal. If you are using Yarn, run yarn add @ev-ecomtechbd/node instead. For pnpm users, pnpm add @ev-ecomtechbd/node works identically.
After installation, create an instance of EmailVerifier by passing your API key directly or by setting the EV_API_KEY environment variable. For production deployments, we strongly recommend using environment variables to avoid committing secrets to version control. The SDK constructor accepts an optional configuration object where you can set timeout (default 30000ms), retries (default 3), sandbox mode for testing, and a custom baseUrl if you are using a dedicated endpoint. The client is designed to be instantiated once and reused across your application, as it manages connection pooling and retry logic internally.