2.4.1 • Published 2 years ago

lodash-checkit v2.4.1

Weekly downloads
9,230
License
MIT
Repository
github
Last release
2 years ago

lodash-checkit

lodash-checkit

Related modules: lodash-match-pattern chai-match-pattern

This is an extension of lodash with extra isXxxx methods from the Checkit module, along with is...Case methods derived from the lodash case conversion methods. All functions have corresponding isNotXxxx methods as well.

Lodash-Checkit "isXxxx" function list

NameFrom
isAlphacheckit "alpha" regex /^a-z+$/i
isAlphaDashcheckit "alphaDash" regex /^a-z0-9_-+$/i
isAlphaNumericcheckit "alphaNumeric" regex /^a-z0-9+$/i
isAlphaUnderscorecheckit "alphaUnderscore" regex /^a-z0-9_+$/i
isArgumentslodash isArguments
isArraylodash isArray
isArrayBufferlodash isArrayBuffer
isArrayLikelodash isArrayLike
isArrayLikeObjectlodash isArrayLikeObject
isBase64checkit "base64" regex /^(?:A-Za-z0-9+\/{4})*(?:A-Za-z0-9+\/{2}==|A-Za-z0-9+\/{3}=)?$/
isBetweencheckit validator between
isBooleanlodash isBoolean
isBufferlodash isBuffer
isCamelCaselodash camelCase
isContainerForcheckit validator contains
isDatelodash isDate
isDifferentcheckit validator different
isElementlodash isElement
isEmailcheckit "email" regex /^(.+)@(.+).(.+)$/i
isEmptylodash isEmpty
isEquallodash isEqual
isEqualWithlodash isEqualWith
isErrorlodash isError
isExactLengthcheckit validator exactLength
isExistscheckit validator exists
isFinitelodash isFinite
isFunctionlodash isFunction
isGreaterThancheckit validator greaterThan
isGreaterThanEqualTocheckit validator greaterThanEqualTo
isInRangecheckit validator range
isIntegerlodash isInteger
isIpv4checkit "ipv4" regex /^((250-5|20-4|10-9{2}|0-9{1,2}).){3}(250-5|20-4|10-9{2}|0-9{1,2})$/i
isIpv6checkit "ipv6" regex /^((?=.::)(?!.::.+::)(::)?(\dA-F{1,4}:(:|\b)|){5}|(\dA-F{1,4}:){6})(((\dA-F{1,4}((?!\3)::|:\b|$))|(?!\2\3)){2}|(((20-4|1\d|1-9)?\d|250-5).?\b){4})$/i
isKebabCaselodash kebabCase
isLengthlodash isLength
isLessThancheckit validator lessThan
isLessThanEqualTocheckit validator lessThanEqualTo
isLowerCaselodash lowerCase
isLuhncheckit "luhn" regex /^(?:40-9{12}(?:0-9{3})?|51-5{14}|6(?:011|50-9)0-9{12}|347{13}|3(?:00-5|68)0-9{11}|(?:2131|1800|35\d{3})\d{11})$/
isMaplodash isMap
isMatchlodash isMatch
isMatchWithlodash isMatchWith
isMaxLengthcheckit validator maxLength
isMinLengthcheckit validator minLength
isNaNlodash isNaN
isNativelodash isNative
isNaturalcheckit "natural" regex /^0-9+$/i
isNaturalNonZerocheckit "naturalNonZero" regex /^1-9*$/i
isNillodash isNil
isNotAlphanot "isAlpha"
isNotAlphaDashnot "isAlphaDash"
isNotAlphaNumericnot "isAlphaNumeric"
isNotAlphaUnderscorenot "isAlphaUnderscore"
isNotBase64not "isBase64"
isNotBetweennot "isBetween"
isNotCamelCasenot "isCamelCase"
isNotContainerFornot "isContainerFor"
isNotDifferentnot "isDifferent"
isNotEmailnot "isEmail"
isNotExactLengthnot "isExactLength"
isNotExistsnot "isExists"
isNotGreaterThannot "isGreaterThan"
isNotGreaterThanEqualTonot "isGreaterThanEqualTo"
isNotInRangenot "isInRange"
isNotIpv4not "isIpv4"
isNotIpv6not "isIpv6"
isNotKebabCasenot "isKebabCase"
isNotLessThannot "isLessThan"
isNotLessThanEqualTonot "isLessThanEqualTo"
isNotLowerCasenot "isLowerCase"
isNotLuhnnot "isLuhn"
isNotMaxLengthnot "isMaxLength"
isNotMinLengthnot "isMinLength"
isNotNaturalnot "isNatural"
isNotNaturalNonZeronot "isNaturalNonZero"
isNotNumericnot "isNumeric"
isNotRequirednot "isRequired"
isNotSnakeCasenot "isSnakeCase"
isNotStartCasenot "isStartCase"
isNotUpperCasenot "isUpperCase"
isNotUrlnot "isUrl"
isNotUuidnot "isUuid"
isNulllodash isNull
isNumberlodash isNumber
isNumericcheckit validator numeric
isObjectlodash isObject
isObjectLikelodash isObjectLike
isPlainObjectlodash isPlainObject
isRegExplodash isRegExp
isRequiredcheckit validator required
isSafeIntegerlodash isSafeInteger
isSetlodash isSet
isSnakeCaselodash snakeCase
isStartCaselodash startCase
isStringlodash isString
isSymbollodash isSymbol
isTypedArraylodash isTypedArray
isUndefinedlodash isUndefined
isUpperCaselodash upperCase
isUrlcheckit "url" regex /^((http|https):\/\/(\w+:{0,1}\w*@)?(\S+)|)(:0-9+)?(\/|\/(\w#!:.?+=&%@!-\/))?$/
isUuidcheckit "uuid" regex /^0-9a-f{8}-0-9a-f{4}-1-5{3}-89ab{3}-0-9a-f{12}$/i
isWeakMaplodash isWeakMap
isWeakSetlodash isWeakSet