pingity

A package for easily including the Pingity API on a webpage.

Usage no npm install needed!

<script type="module">
  import pingity from 'https://cdn.skypack.dev/pingity';
</script>

README

Pingity-js

Includes functions to validate an email address through the Pingity API, as well as through a basic regex validation.

var Pingity = require('pingity');

To make an Ajax call to the Pingity API:

Pingity.validate("address@example.com")

This will return pass, fail or warning messages based on the test results from Pingity.

To bypass Pingity and run basic regex verification:

Pingity.basic("address@example.com")

This will return either "Format Valid" or "Invalid email address".


Recently updated with a small Mocha/Chai test suite.