Provide geo info based on given ip address via http://ip-api.com
.
It is possible to use it as cli tool or as library.
git clone git@github.com:igat64/workshop-oop__getgeo.git && cd workshop-oop__getgeo
npm i
# get info of current ip
./bin/getgeo.js
# or get info for some specific ip
./bin/getgeo.js 123.123.123.123
npm run start
# or with ip
npm run start -- 123.123.123.123
npm run test