workshop-oop__getgeo

Description

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.

Clone repo

git clone git@github.com:igat64/workshop-oop__getgeo.git && cd workshop-oop__getgeo

Install deps

npm i

Usage

# get info of current ip
./bin/getgeo.js

# or get info for some specific ip
./bin/getgeo.js 123.123.123.123

Start app

npm run start

# or with ip
npm run start -- 123.123.123.123

Test app

npm run test