mirror of
https://github.com/Adeohluwa/validator
synced 2026-01-14 18:31:36 +00:00
No description
| src | ||
| tests | ||
| .gitignore | ||
| .travis.yml | ||
| LICENSE | ||
| README.md | ||
| validator.nimble | ||
Validator
This library provides several functions to validate real world data types
Installation
$ nimble install validator
Tests
$ nimble test
| Validators | Description | Sub functions |
|---|---|---|
| isEmail(text: string): bool | Check if string is an email address. | isGmail,isOutlook,isYahoo,isiCloud,isQq |
| isCreditCard(text: string): bool | Check if string is a valid credit card number. | isMastercard,isAmericanExpress,isVisa,isJCB, isDiners, isMaestro |
| isIP(text: string): bool | Check if string is an IP address. | isIPv4,isIPv6 |