UNPKG

@minilibs/ip2geo

Version:

Ip to Geo location instantly ⚡

26 lines (17 loc) 805 B
# **Ip2Geo 🗺️** <br /> Ip2Geo is a super-lightweight and type-safe library that allows you to convert any IP to geolocation data, 100% free with unlimited uses—no catch. It works exclusively online and can run on both the client and server. Visit our website to learn more: https://ip2geo.dev Note: This service might become a paid feature in the far future, but it will remain affordable—up to 5 times cheaper than other providers. We will notify you several months in advance, giving you ample time to transition to the new setup. Importing: ```typescript import { getGeoFromIP } from '@minilibs/ip2geo' // or import getGeoFromIP from '@minilibs/ip2geo' ``` Usage: ```typescript const geo = await getGeoFromIP('8.8.8.8') ``` Read more about the Ip2Geo at https://minilibs.com/ip2geo.