UNPKG
@athrva/get-ip
Version:
latest (1.0.2)
1.0.2
1.0.1
1.0.0
Get public IP from api.athrva.in
@athrva/get-ip
/
test.js
5 lines
(3 loc)
•
100 B
JavaScript
View Raw
1
2
3
4
5
import
ip
from
'@athrva/get-ip'
;
const
ipAddress =
await
ip.
address
();
console
.
log
(ipAddress);