Hey Guys, I've published my first NPM library called location-please: https://www.npmjs.com/package/location-please
Now there are multiple libraries who can help you get the details of the IP which may or may not be free.
What I've done is added 3 reliable API together and developed a fallback mechanism to get IP details such as country, country code, city, etc.
This mechanism was inspired from a medium post.
Hope it'll be useful. I'd love to know what you think.