Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "IsIP"

Index

Functions

Functions

isIP

  • isIP(value: string, version?: "4" | "6"): boolean
  • Checks if the string is an IP (version 4 or 6). If given value is not a string, then it returns false.

    Parameters

    • value: string

      The value being checked.

    • Optional version: "4" | "6"

    Returns boolean

    True if the string is an IP (version 4 or 6), false otherwise.

Generated using TypeDoc