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

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

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

A function to convert a number between arbitrary bases.

Parameters

num: number

The number to convert.

fromBase: number

The base num is in

toBase: number

The base to convert num to

Returns

any

num converted to base to_base