Checks if a string is a valid IP address (v4 or v6).

  • Parameters

    • value: string

      The string to validate.

    • options: IsIPOptions = {}

      Options for IP address validation.

    Returns boolean

    true if the string is a valid IP address (or IP range if allowed), false otherwise.