npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@nexmailpro/sdk

v1.0.0

Published

Official NexMailPro JavaScript SDK for browser and Node.js email verification workflows.

Readme

NexMailPro JavaScript SDK

Official standalone JavaScript and TypeScript SDK for the NexMailPro email verification API.

Features

  • TypeScript-first API with full typings
  • Browser and Node.js support
  • ESM and CommonJS builds
  • Zero runtime dependencies
  • Typed API and transport errors
  • Single email verification plus bulk verification helpers

Installation

npm install @nexmailpro/sdk

Requirements

  • Node.js 18+ for native fetch
  • Any modern browser with the Fetch API
  • Older Node.js runtimes can work if you pass a custom fetch implementation

Quick Start

import { NexMailProClient } from "@nexmailpro/sdk";

const client = new NexMailProClient({
  apiKey: 'YOUR_API_KEY',
});

const result = await client.verifyEmail('[email protected]');

console.log(result.data.status);
console.log(result.meta?.credits_charged);

CommonJS

const { NexMailProClient } = require('@nexmailpro/sdk');

const client = new NexMailProClient({
  apiKey: process.env.NEXMAILPRO_API_KEY,
});

client.verifyEmail('[email protected]').then((result) => {
  console.log(result.data);
});

Browser Use

The SDK works in browsers, but long-lived API keys should only be used in trusted environments such as internal tools, browser extensions, or apps that proxy requests through your backend.

A runnable browser example is included in examples/browser/index.html.

API

new NexMailProClient(options)

interface NexMailProOptions {
  apiKey: string;
  baseUrl?: string;
  timeoutMs?: number;
  headers?: HeadersInit;
  fetch?: typeof fetch;
  userAgent?: string;
}

Defaults:

  • baseUrl: https://nexmailpro.com
  • timeoutMs: 15000

verifyEmail(email, payload?, requestOptions?)

Verifies a single email by calling:

POST https://nexmailpro.com/api/v1/verify/email

const response = await client.verifyEmail('[email protected]', {
  source: 'signup-form',
});

Response shape:

{
  success: true,
  message: 'Verification completed',
  data: {
    email: '[email protected]',
    status: 'valid',
    sub_status: 'deliverable',
    score: 90,
    is_syntax_valid: true,
    has_mx: true,
    domain_exists: true
  },
  meta: {
    credits_charged: 1
  }
}

Bulk Helpers

The SDK also exposes typed wrappers for the currently documented bulk endpoints:

  • createBulkVerification(input)
  • getBulkVerificationStatus(uuid)
  • startBulkVerification(uuid)
  • getBulkVerificationResults(uuid, query?)

Examples:

const bulk = await client.createBulkVerification({
  title: 'May newsletter',
  emails: ['[email protected]', '[email protected]'],
  smtpMode: 'safe',
});

const status = await client.getBulkVerificationStatus(bulk.data.uuid);

CSV uploads are supported with Blob, File, Uint8Array, ArrayBuffer, or raw CSV strings.

Error Handling

import {
  NexMailProClient,
  NexMailProApiError,
  NexMailProTransportError,
} from '@nexmailpro/sdk';

try {
  await client.verifyEmail('bad-email');
} catch (error) {
  if (error instanceof NexMailProApiError) {
    console.error(error.status, error.code, error.response);
  } else if (error instanceof NexMailProTransportError) {
    console.error(error.message);
  }
}

Examples

Development

npm install
npm run build
npm test
npm pack

License

MIT