validator-pizza-node 1.0.3 • Public • Published 6 years ago 🍕 Validator Pizza Node
Validator Pizza Node is a tiny (552kb) promise based library for http://validator.pizza which helps you verify if an email or domain is a disposable email service provider.
Install
npm install -save validator-pizza-node
Usage
const ValidatorPizzaClient = require ( " validator-pizza-node " ) ;
const client = new ValidatorPizzaClient ( ) ;
client . validate ( " domain " , " yopmail.com " )
. then ( response => {
console . log ( response . valid ( ) ) ;
console . log ( response . field ( " mx " ) ) ;
console . log ( response . successful ( ) ) ;
} ) ;
Developer
License
MIT
Versions Current Tags Version
Downloads (Last 7 Days) 1.0.3
30
Version History Package Sidebar Install npm i validator-pizza-node
Downloads Weekly Downloads