DEV Community

sidehustlehq
sidehustlehq

Posted on

Published my first NPM library (location-please)

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.

Thank you!

Top comments (3)

Collapse
 
patrixr profile image
Patrick R

Love the name :)

Collapse
 
sidehustlehq profile image
sidehustlehq

Hey Patrick.
Lol. Thanks!! :P

Collapse
 
sidehustlehq profile image
sidehustlehq

Hey!
So masking our requesting ip, nice, I think we can do this if you've got any ideas on where to start.