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

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

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

Returns an array of the CIDR addresses.

Parameters

ipFrom: string

The starting IP address for the CIDR.

ipTo: string

The ending IP address for the CIDR.

Returns

string[]

The array of CIDR addresses.