1.1.1 • Published 7 years ago

certify.js v1.1.1

Weekly downloads
3
License
ISC
Repository
github
Last release
7 years ago

certify.js

Validar, filtrar e colocar mascaras com o certify ficará bem mais fácil.

Node.js

Install NPM package:

npm install certify.js

var certify = require('certify.js');

certify({
    mail: {
        data: 'teste@teste.com',
        execute: {
            isValid: {
                mail: {
                    msg: 'Email invalido!. Favor por outro.',
                }
            }
        }
    }
}).then(function(isValid) {
    //success
    console.log(isValid);
}).catch(function(error) {
    //caso ocorra erro    
    console.log(error)
});