We’re excited to announce Bit’s new home at bit.dev!Learn more

validator-js

LICENSE
MIT
VISIBILITY
Public
subjectA library of string validators and sanitizers.
Like
1 collaborator
isCurrency("10,123.45", { allow_negatives: false });
validator-js /
is-currency
v10.11.0
check if the string is a valid currency amount
Build: Pass
public
mit
isHexColor("fff");
validator-js /
is-hex-color
v10.11.0
check if the string is a hexadecimal color
Build: Pass
public
mit
isByteLength("g", { max: 3 });
validator-js /
is-byte-length
v10.11.0
check if the string's length
Build: Pass
public
mit
isAscii("[email protected]");
validator-js /
is-ascii
v10.11.0
check if the string contains ASCII chars only
Build: Pass
public
mit
isAlpha("västgöte", "sv-SE");
validator-js /
is-alpha
v10.11.0
check if the string contains only letters
Build: Pass
public
mit
isAfter("undefined", "2011-08-03");
validator-js /
is-after
v10.11.0
check if the string is a date that's after the specified...
Build: Pass
public
mit
isDivisibleBy("100", 2);
validator-js /
is-divisible-by
v10.11.0
check if the string is a number that's divisible by anot...
Build: Pass
public
mit
isHexadecimal("deadBEEF");
validator-js /
is-hexadecimal
v10.11.0
check if the string is a hexadecimal number
Build: Pass
public
mit
isFQDN("a.domain.co");
validator-js /
is-fqdn
v10.11.0
check if the string is a fully qualified domain name
Build: Pass
public
mit
isHash( "46fc0125a148788a3ac1d649566fc04eb84a746f1a6e4fa7", "tiger192"
validator-js /
is-hash
v10.11.0
check if the string is a hash of type algorithm
Build: Pass
public
mit
isISIN("BE0003796134");
validator-js /
is-isin
v10.11.0
check if the string is an ISIN ISIN
Build: Pass
public
mit
isISRC("USRC15705223");
validator-js /
is-isrc
v10.11.0
check if the string is a ISRC
Build: Pass
public
mit
isPort("80");
validator-js /
is-port
v10.11.0
check if the string is a valid port number
Build: Pass
public
mit
isFullWidth("Fカタカナ゙ᆲ");
validator-js /
is-full-width
v10.11.0
check if the string contains any full-width chars
Build: Pass
public
mit
isAlphanumeric("20θ", "el-GR");
validator-js /
is-alphanumeric
v10.11.0
check if the string contains only letters and numbers
Build: Pass
public
mit
contains("bazfoo", "foo");
validator-js /
contains
v10.11.0
check if the string contains the seed
Build: Pass
public
mit
isLowercase("this is lowercase.");
validator-js /
is-lowercase
v10.11.0
check if the string is lowercase
Build: Pass
public
mit
isRFC3339("2009-05-19 14:39:22Z");
validator-js /
is-rf-c3339
v10.11.0
check if the string is a valid RFC 3339 date
Build: Pass
public
mit
isLatLong( "(-60.978437, -0.175781)"
validator-js /
is-lat-long
v10.11.0
check if the string is a valid latitude-longitude coordinate...
Build: Pass
public
mit