@validarium/predicates
v0.7.2
Published
Reusable predicates used within @validarium/intl.
Downloads
120
Readme
Predicates
This package contains all predicates used in validation functions. Name and usage is self explanatory. If not, please look at the tests.
You can use them for composing custom functionality.
API reference
predicates
This package contains all predicates used in validation functions. Name and usage is self explanatory. If not, please look at the tests.
You can use them for composing custom functionality.
- predicates
- .hasDateMax
- .hasDateMin
- .hasLength
- .hasLengthMax
- .hasLengthMin
- .hasNoSpecialSymbols
- .hasNoWhiteSpace
- .hasOnlyDigits
- .hasValueInInterval
- .hasValueMax
- .hasValueMin
- .isDivisibleBy
- .isEmail
- .isInteger
- .isNegativeNumber
- .isNumber
- .isOneOf
- .isPhoneNumber
- .isPositiveNumber
- .isRequired
- .isString
- .isTrimmedLeft
- .isTrimmedRight
- .isValidIban
- .isRequiredNumber
- .isTrimmed
- .hasAgeInInterval()
- .hasLengthInterval()
- .isNotOneOf()
- .matches()
- .startsWith()
predicates.hasDateMax
predicates.hasDateMin
predicates.hasLength
predicates.hasLengthMax
predicates.hasLengthMin
predicates.hasNoSpecialSymbols
predicates.hasNoWhiteSpace
predicates.hasOnlyDigits
predicates.hasValueInInterval
predicates.hasValueMax
predicates.hasValueMin
predicates.isDivisibleBy
predicates.isEmail
predicates.isInteger
predicates.isNegativeNumber
predicates.isNumber
predicates.isOneOf
predicates.isPhoneNumber
predicates.isPositiveNumber
predicates.isRequired
predicates.isString
predicates.isTrimmedLeft
predicates.isTrimmedRight
predicates.isValidIban
predicates.isRequiredNumber
predicates.isTrimmed
predicates.hasAgeInInterval()
predicates.hasLengthInterval()
predicates.isNotOneOf()
predicates.matches()
predicates.startsWith()
Related projects
- @redux-tools – Maintaining large Redux applications with ease.
- react-union – Integrate React apps into various CMSs seamlessly.
- lundium – Beautiful React component library.
License
All packages are distributed under the MIT license. See the license here.