0.0.4 • Published 8 years ago

formsy-react-validations v0.0.4

Weekly downloads
17
License
MIT
Repository
github
Last release
8 years ago

formsy-react-validations

Build Status Coverage Status Dependency Status

Validation rules for forms-react package.

Install package

$ npm install --save formsy-react-validations

List of rules:

  • isDefaultRequiredValue (*)
  • isExisty (*)
  • matchRegexp (*)
  • isUndefined (*)
  • isEmptyString (*)
  • isEmail (*)
  • isUrl (*)
  • isTrue (*)
  • isFalse (*)
  • isAlpha (*)
  • isNumeric (*)
  • isAlphanumeric (*)
  • isInt (*)
  • isFloat (*)
  • isWords (*)
  • isSpecialWords (*)
  • isLength (*)
  • equals (*)
  • equalsField (*)
  • maxLength (*)
  • minLength (*)
  • isGreaterThan
  • isGreaterThanEqualTo
  • isSmallerThan
  • isSmallerThanEqualTo
  • hasNumber
  • hasAlpha
  • hasSpecial
  • isRequiredIf

(*) Extracted from formsy-react.

Usage

For example:

import attachValidationToFormsy from 'formsy-react-validations';

attachValidationToFormsy('isGreaterThan', 'isGreaterThanEqualTo', 'isSmallerThan', ...);

LICENSE

MIT

0.0.4

8 years ago

0.0.3

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago