Skip to content

openpeeps/valido

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

68 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


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

nimble install valido

API reference
Github Actions Github Actions

😍 Key Features

  • Framework agnostic
  • Zero RegExp
  • is Base32, Base58, Base64
  • is Email
  • is IP4, IP6
  • is IBAN
  • is CARD (BIN/IIN support for Visa, MasterCard, Maestro, Discovery, etc.)
  • is Strong Password
  • is Port
  • is URI
  • is UUID
  • is JSON
  • is Lowercase, Uppercase, Alpha, Alphanumerical, Digits
  • is Boolean, Int, Float, Hex, Regex
  • is Country
  • Open Source | MIT License
  • Written in Nim language

Examples

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

🎩 License

Valido | MIT license. Made by Humans from OpenPeeps.
Copyright © 2023 OpenPeeps & Contributors — All rights reserved.