UNPKG

@e9x/ipi

Version:

A free library/cli tool to get IP information.

21 lines (20 loc) 455 B
export interface IPInfo { asn: number; asd: string; city: string; region: string; zipCode: string; timezone: string; latitude: number; longitude: number; countryLong: string; countryShort: string; } /** * * Returns information about the IP * @param ip IP address * @returns If successful, IP information, otherwise undefined. */ declare const ipInfo: (ip: string) => IPInfo | undefined; export default ipInfo;