validatorjs
Reactive icon

Validator JS

version 1.0.0 (Compatible with OutSystems 11)
Uploaded
 on 03 November 2023
 by 
5.0
 (1 rating)
validatorjs

Validator JS

Details
This library empowers you to assess and validate a wide range of text data effectively. It is built upon a JavaScript library that can be found at this URL: https://github.com/validatorjs/validator.js.
Read more

This library is a versatile tool for validation. It's powered by the JavaScript library found at https://github.com/validatorjs/validator.js, and you can employ all its methods either as actions or functions.

Here's a comprehensive list of validation and sanitization actions:

Validation Actions:

  • contains(str, seed [, options])
  • equals(str, comparison)
  • isAfter(str [, options])
  • isAlpha(str [, locale, options])
  • isAlphanumeric(str [, locale, options])
  • isAscii(str)
  • isBase32(str [, options])
  • isBase58(str)
  • isBase64(str [, options])
  • isBefore(str [, date])
  • isBIC(str)
  • isBoolean(str [, options])
  • isBtcAddress(str)
  • isByteLength(str [, options])
  • isCreditCard(str [, options])
  • isCurrency(str [, options])
  • isDataURI(str)
  • isDate(str [, options])
  • isDecimal(str [, options])
  • isDivisibleBy(str, number)
  • isEAN(str)
  • isEmail(str [, options])
  • isEmpty(str [, options])
  • isEthereumAddress(str)
  • isFloat(str [, options])
  • isFQDN(str [, options])
  • isFreightContainerID(str)
  • isFullWidth(str)
  • isHalfWidth(str)
  • isHash(str, algorithm)
  • isHexadecimal(str)
  • isHexColor(str)
  • isHSL(str)
  • isIBAN(str, [, options])
  • isIdentityCard(str [, locale])
  • isIMEI(str [, options])
  • isIn(str, values)
  • isInt(str [, options])
  • isIP(str [, version])
  • isIPRange(str [, version])
  • isISBN(str [, options])
  • isISIN(str)
  • isISO6346(str)
  • isISO6391(str)
  • isISO8601(str [, options])
  • isISO31661Alpha2(str)
  • isISO31661Alpha3(str)
  • isISO4217(str)
  • isISRC(str)
  • isISSN(str [, options])
  • isJSON(str [, options])
  • isJWT(str)
  • isLatLong(str [, options])
  • isLength(str [, options])
  • isLicensePlate(str, locale)
  • isLocale(str)
  • isLowercase(str)
  • isLuhnNumber(str)
  • isMACAddress(str [, options])
  • isMagnetURI(str)
  • isMailtoURI(str, [, options])
  • isMD5(str)
  • isMimeType(str)
  • isMobilePhone(str [, locale [, options]])
  • isMongoId(str)
  • isMultibyte(str)
  • isNumeric(str [, options])
  • isOctal(str)
  • isPassportNumber(str, countryCode)
  • isPort(str)
  • isPostalCode(str, locale)
  • isRFC3339(str)
  • isRgbColor(str [, includePercentValues])
  • isSemVer(str)
  • isSurrogatePair(str)
  • isUppercase(str)
  • isSlug(str)
  • isStrongPassword(str [, options])
  • isTime(str [, options])
  • isTaxID(str, locale)
  • isURL(str [, options])
  • isUUID(str [, version])
  • isVariableWidth(str)
  • isVAT(str, countryCode)
  • isWhitelisted(str, chars)
  • matches(str, pattern [, modifiers])


Sanitization Actions:

  • rtrim(input [, chars])
  • stripLow(input [, keep_new_lines])
  • toBoolean(input [, strict])
  • toDate(input)
  • toFloat(input)
  • toInt(input [, radix])
  • trim(input [, chars])
  • unescape(input)
  • whitelist(input, chars)
Release notes (1.0.0)
License (1.0.0)
Reviews (1)
by 
2024-01-27
in version 1.0.0
Great Wrapper for the Validator package. Thanks for sharing this.
Answer from the owner
2024-02-22
in version 1.0.0
Thanks SA'ED ALHALTEH! :D
Team
Other assets in this category