auth-validations

2.4.2 • Public • Published

travis build codecov coverage version downloads MIT License semantic-release

Auth-Validations

This is a npm module that validates common inputs for user registration process.

Install

npm install auth-validations

In your javascript file,

var av = require('auth-validations');

API

validateEmail(email)

Return error message (String). If the error message length is 0, the validation passed successfully.

validatePassword(password)

Returns an array of error messages (String). If the array is empty, the validation passed successfully.

validateStringLength0to50(text)

Return error message (String). If the error message length is 0, the validation passed successfully.

Dependencies (0)

    Dev Dependencies (11)

    Package Sidebar

    Install

    npm i auth-validations

    Weekly Downloads

    1

    Version

    2.4.2

    License

    MIT

    Last publish

    Collaborators

    • yhagio