Start sharing components as a team!Share components as a team!Join Bit to build your applications faster.Get Started Free

validator-js

LICENSE
MIT
VISIBILITY
Public
subjectA library of string validators and sanitizers.
1 collaborator
Labels
Clear
Labels
Done
No visible options
Clear
Done
Namespaces
Clear
Namespaces
Done
No visible options
Clear
Done
Dependencies
Clear
Dependencies
Done
No visible options
Clear
Done
No size data available
Size
Clear
Size
Done
Choose size range
?
Component bundled with dependencies, minified and gzip'ed
0 B
50 KB +
Component bundled with dependencies,minified and gzip'ed
Clear
Done
More options
Clear
More options
Done
Component features
Tests
Usage examples
Visual rendering
Clear
Done
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
1 KB
isHexColor("fff");
validator-js /
is-hex-color
v10.11.0
check if the string is a hexadecimal color
Build: Pass
public
mit
736 B
isByteLength("g", {
  max: 3
});
validator-js /
is-byte-length
v10.11.0
check if the string's length
Build: Pass
public
mit
805 B
isAscii("[email protected]");
validator-js /
is-ascii
v10.11.0
check if the string contains ASCII chars only
Build: Pass
public
mit
727 B
isAlpha("västgöte", "sv-SE");
validator-js /
is-alpha
v10.11.0
check if the string contains only letters
Build: Pass
public
mit
2 KB
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
825 B
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
772 B
isHexadecimal("deadBEEF");
validator-js /
is-hexadecimal
v10.11.0
check if the string is a hexadecimal number
Build: Pass
public
mit
725 B
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
1 KB
isHash(
  "46fc0125a148788a3ac1d649566fc04eb84a746f1a6e4fa7",
  "tiger192"
validator-js /
is-hash
v10.11.0
check if the string is a hash of type algorithm
Build: Pass
public
mit
813 B
isISIN("BE0003796134");
validator-js /
is-isin
v10.11.0
check if the string is an ISIN ISIN
Build: Pass
public
mit
868 B
isISRC("USRC15705223");
validator-js /
is-isrc
v10.11.0
check if the string is a ISRC
Build: Pass
public
mit
739 B
isPort("80");
validator-js /
is-port
v10.11.0
check if the string is a valid port number
Build: Pass
public
mit
880 B
isFullWidth("Fカタカナ゙ᆲ");
validator-js /
is-full-width
v10.11.0
check if the string contains any full-width chars
Build: Pass
public
mit
775 B
isAlphanumeric("20θ", "el-GR");
validator-js /
is-alphanumeric
v10.11.0
check if the string contains only letters and numbers
Build: Pass
public
mit
2 KB
contains("bazfoo", "foo");
validator-js /
contains
v10.11.0
check if the string contains the seed
Build: Pass
public
mit
799 B
isLowercase("this is lowercase.");
validator-js /
is-lowercase
v10.11.0
check if the string is lowercase
Build: Pass
public
mit
715 B
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
871 B
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
814 B