Skip to content

Latest commit

 

History

History
22 lines (12 loc) · 579 Bytes

README.md

File metadata and controls

22 lines (12 loc) · 579 Bytes

Pingity-js

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

const Pingity = require('pingity');

To make an Ajax call to the Pingity API:

Pingity.validate("[email protected]");

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("[email protected]");

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

Notes

Recently updated with a small Mocha/Chai test suite.