UNPKG
ip-location-api
Version:
latest (5.0.2)
5.0.2
5.0.1
5.0.0
4.1.0
4.0.4
4.0.3
4.0.2
4.0.1
4.0.0
3.0.3
3.0.2
3.0.1
3.0.0
2.4.3
2.4.2
2.4.1
2.4.0
2.3.4
2.3.2
2.3.1
2.3.0
2.2.1
2.2.0
2.1.5
2.1.4
2.1.3
2.1.2
2.1.1
2.1.0
2.0.1
2.0.0
1.0.0
0.2.4
0.2.3
0.2.2
0.2.1
0.2.0
0.1.20240907
0.1.20240904
0.1.1
Fast location lookup from IP address
github.com/sapics/ip-location-api
sapics/ip-location-api
ip-location-api
/
script
/
run.mjs
12 lines
(9 loc)
•
219 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
import
{lookup}
from
'../src/main.mjs'
var
testIps = [
'5.62.92.0'
,
'2a0a:b383::'
,
'5.79.126.27'
]
const
run
=
async
(
) => {
for
(
var
ip
of
testIps){
var
r =
await
lookup
(ip)
console
.
log
(ip, r) } }
run
()