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 🙏

© 2024 – Pkg Stats / Ryan Hefner

zerobounce-node-api

v2.0.0

Published

Forked zerobounce api for npm

Downloads

3,556

Readme

ZeroBounce API v2 (node version)

This is an unofficial port of zerobounce javascript api v2 to node

Usage :

Init :

const zeroBounceApi = require('../ZeroBounceApi');
const zb = zeroBounceApi('xxxxxxxxx'); // put your api key

Get Credits :

zb.getCredits()
  .then((credits)=> console.log(credits)); // credits is type number

Validate :

zb.getCredits()
  .validate((resp)=> console.log(resp)); // see resp values below

Properties and possible values returned by:

  1. validate method

|Property|Possible Values |:--- |:--- address | The email address you are validating. status | valid /invalid /catch-all /unknown /spamtrap /abuse /do_not_mail sub_status |antispam_system /greylisted /mail_server_temporary_error /forcible_disconnect /mail_server_did_not_respond /timeout_exceeded /failed_smtp_connection /mailbox_quota_exceeded /exception_occurred /possible_traps /role_based /global_suppression /mailbox_not_found /no_dns_entries /failed_syntax_check /possible_typo /unroutable_ip_address /leading_period_removed /does_not_accept_mail /role_based_catch_all /disposable /toxic account | The portion of the email address before the "@" symbol. domain | The portion of the email address after the "@" symbol. did_you_mean | Suggestive Fix for an email typo. domain_age_days | Age of the email domain in days or [null]. free_email | [true/false] If the email comes from a free provider. mx_found | [true/false] Does the domain have an MX record. mx_record | The preferred MX record of the domain smtp_provider | The SMTP Provider of the email or [null] (BETA). firstname | The first name of the owner of the email when available or [null]. lastname |The last name of the owner of the email when available or [null]. gender |The gender of the owner of the email when available or [null]. country |The country the email signed up when ip address is provided or [null]. region |The region the email signed up when ip address is provided or [null]. city |The city the email signed up when ip address is provided or [null]. zipcode |The zipcode the email signed up when ip address is provided or [null]. processed_at |The UTC time the email was validated.

  1. getCredit method

|Property|Possible Values |:--- |:--- credits | The number of credits left in account for email validation.

Any of the following email addresses can be used for testing the API, no credits are charged for these test email addresses:

You can use this IP to test the GEO Location in the API.

  • 99.110.204.1