https://github.com/openpeeps/valido
A library of string validators and sanitizers.
https://github.com/openpeeps/valido
nim nim-lang nim-language sanitizer string-validation validation validation-library validator
Last synced: about 2 months ago
JSON representation
A library of string validators and sanitizers.
- Host: GitHub
- URL: https://github.com/openpeeps/valido
- Owner: openpeeps
- License: mit
- Created: 2023-01-30T12:45:47.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-04-24T16:09:54.000Z (about 1 year ago)
- Last Synced: 2025-01-21T14:15:48.611Z (3 months ago)
- Topics: nim, nim-lang, nim-language, sanitizer, string-validation, validation, validation-library, validator
- Language: Nim
- Homepage: https://openpeeps.github.io/valido
- Size: 1.83 MB
- Stars: 12
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
A library of string validators and sanitizers.
👑 Written in Nim language
nimble install valido
## 😍 Key Features
- [x] Framework agnostic
- [ ] Zero RegExp
- [x] is `Base32`, `Base58`, `Base64`
- [x] is `Email`
- [x] is `IP4`, `IP6`
- [ ] is `IBAN`
- [x] is `CARD` (BIN/IIN support for `Visa`, `MasterCard`, `Maestro`, `Discovery`, etc.)
- [x] is Strong `Password`
- [x] is `Port`
- [x] is `URI`
- [x] is `UUID`
- [x] is `JSON`
- [x] is `Lowercase`, `Uppercase`, `Alpha`, `Alphanumerical`, `Digits`
- [x] is `Boolean`, `Int`, `Float`, `Hex`, `Regex`
- [ ] is Country
- [x] Open Source | `MIT` License
- [x] Written in Nim language## Examples
```nim
import valido/[email, ip, password]assert isEmail("[email protected]") == true
assert isIP4("127.0.0.1", allowLoopback = false) == falseassert isStrongPassword("123adminAdmin") == false
```
## Extra features
`todo` Enable extra features by passing `-d:validoCountries`. This includes information
about all `countries`, `currency`, `languages`, `phone` codes/prefixes/length, `postal` information and `states`.## IBAN with SWIFT information
`todo` Enable IBAN validation by passing `-d:validoSwiftCodes`### ❤ Contributions & Support
- 🐛 Found a bug? [Create a new Issue](https://github.com/openpeeps/valido/issues)
- 👋 Wanna help? [Fork it!](https://github.com/openpeeps/valido/fork)
- 😎 [Get €20 in cloud credits from Hetzner](https://hetzner.cloud/?ref=Hm0mYGM9NxZ4)
- 🥰 [Donate via PayPal address](https://www.paypal.com/donate/?hosted_button_id=RJK3ZTDWPL55C)### 🎩 License
Valido | MIT license. [Made by Humans from OpenPeeps](https://github.com/openpeeps).
Copyright © 2023 OpenPeeps & Contributors — All rights reserved.