The `neverbounce` package is the official Node.js wrapper for the NeverBounce email verification API, currently at version 5.0.5. It provides a robust, type-safe interface for integrating email validation services into server-side applications. Since its complete rewrite in version 5.0.0, the library has embraced modern JavaScript development practices, including full TypeScript support with comprehensive type definitions for both requests and responses. It exclusively uses ES Modules for import/export syntax and leverages the native `fetch` API for network requests, departing from older CommonJS and `https` module usage. The release cadence appears active, with recent patch releases demonstrating ongoing maintenance for the v5 branch. Key differentiators include its official backing by NeverBounce, strong typing, and adherence to contemporary Node.js standards, making it a reliable choice for server-side email validation tasks. It explicitly warns against browser usage, emphasizing its server-only nature.
npm install neverbounceVerified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates how to initialize the NeverBounce client, perform an email verification, access detailed results and response data, and handle various API-specific errors using async/await.
Ensure your project's `node` engine version is `18.0.0` or greater. Update your `package.json` and local Node.js environment.
Migrate your application to use ES Module `import` syntax for all NeverBounce library imports. Update your `package.json` to include `"type": "module"` if necessary, or use a `.mjs` extension for files using `import`.
For JavaScript users, this is largely additive. For TypeScript users, ensure your code adheres to the new types; this may involve updating variable declarations or function signatures based on the new API response and request typings.
Ensure you are using a V4 API key. Generate new V4 API credentials from your NeverBounce dashboard if you are still using V3 keys.
Only use this package in Node.js server-side code. For client-side email validation, consider alternative approaches or direct API calls that respect cross-origin policies.
Obtain a valid V4 API key from the NeverBounce dashboard and ensure it is correctly configured in your application.
Migrate your import statements from `const NeverBounce = require('neverbounce');` to `import NeverBounce from 'neverbounce';`. If your project is CommonJS, consider adding `"type": "module"` to your `package.json` or switching the file extension to `.mjs`.No dependency data recorded yet.