UNPKG

passcode-validator

Version:

Validate passwords and numeric codes

6 lines (5 loc) 220 B
enum RuleError { POSITIVE_VALUE_REQUIRED = 'The values cannot be smaller or equal to zero.', MAX_LENGTH_GREATER = 'If maxLength is received, it must be greater or equal to minLength.' } export default RuleError;