Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/ip2location/src/ip2location.d.ts>IPTools#isIPV4

Deno module for IP2Location to lookup the geolocation information
Latest
method IPTools.prototype.isIPV4
import { IPTools } from "https://deno.land/x/ip2location@8.3.0/src/ip2location.d.ts";

Whether the IP address is an IPv4.

Parameters

myIP: string

The IP address to query.

Returns

boolean

Whether is IPv4.