validator
This library provides several functions to validate real world data types
Summary
| Latest Version | 0.2.0 |
|---|---|
| License | MIT |
| CI Status | Failing |
| Downloads | 0 |
| Last Indexed | 2026-11-20 14:00 |
Tags
Authors
- Adeoluwa Adejumo
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 | ✓ | ✓ | ✓ | - | - | - | - | - | - | - |
Dependencies
| Package | Version | Optional |
|---|---|---|
| nim >= | 1.0.4 | No |
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 |