validator
Input validator.
Commands
email
Validate email format
scripts/script.sh email <address>
url
Validate URL (+ HTTP check if curl available)
scripts/script.sh url <url>
ip
Validate IPv4/IPv6 address
scripts/script.sh ip <address>
phone
Validate phone number (7-15 digits)
scripts/script.sh phone <number>
date
Validate and parse date string
scripts/script.sh date <string>
domain
Validate domain (+ DNS lookup if dig available)
scripts/script.sh domain <name>
credit-card
Luhn algorithm check + card type detection
scripts/script.sh credit-card <number>
json
Validate JSON syntax
scripts/script.sh json <file>
yaml
Validate YAML syntax
scripts/script.sh yaml <file>
csv
Validate CSV structure (column consistency)
scripts/script.sh csv <file>
Requirements
- python3
- curl
- dig (optional)
Powered by BytesAgain | bytesagain.com | hello@bytesagain.com