ngx-lift provides several utility functions for working with URLs: isIP and isFQDN for checking hostname types, isURL for validating URLs, and isHttps for checking HTTPS protocol. These utilities are useful for URL validation, security checks, and conditional logic based on URL properties.
Examples
Example 1: Check Hostname Type (isIP & isFQDN)
Check if a URL hostname is an IP address or a fully qualified domain name (FQDN):