validator
Functions for string validation
Summary
| Latest Version | Unknown |
|---|---|
| License | MIT |
| CI Status | Failing |
| Downloads | 0 |
| Last Indexed | 2026-07-24 13:03 |
Tags
Installation
nimble install validator
choosenim install validator
git clone https://github.com/Adeohluwa/validator
OS Compatibility
| Platform | Linux | macOS | Windows | FreeBSD | OpenBSD | NetBSD | Android | iOS | WASM | Embedded |
|---|---|---|---|---|---|---|---|---|---|---|
| validator | ✓ | ✓ | ✓ | - | - | - | - | - | - | - |
Source
| Repository | https://github.com/Adeohluwa/validator |
|---|---|
| Homepage | https://github.com/Adeohluwa/validator |
| Documentation | View Documentation |
| Registry Source | nimble_official |
README
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 |