certify.js

1.1.1 • Public • Published

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)
});

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i certify.js

      Weekly Downloads

      0

      Version

      1.1.1

      License

      ISC

      Last publish

      Collaborators

      • unversed