An open API service indexing awesome lists of open source software.

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.

Awesome Lists containing this project

README

        




A library of string validators and sanitizers.
👑 Written in Nim language


nimble install valido


API reference

Github Actions Github Actions

## 😍 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) == false

assert 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.