Get your public IP address.
import { publicIP } from 'https://deno.land/x/public_ip@v0.1.0/mod.ts';
import { publicIP } from 'https://deno.land/x/public_ip@v0.1.0/mod.ts';
(async () => {
console.log(await publicIP.v4());
// 168.20.117.174
})();
Details changes for each release are documented in the CHANGELOG.md.
If you think any of the public_ip
can be improved, please do open a PR with any updates and submit any issues. Also, I will continue to improve this, so you might want to watch/star this repository to revisit.
We'd love to have your helping hand on contributions to public_ip
by forking and sending a pull request!
Your contributions are heartily ♡ welcome, recognized and appreciated. (✿◠‿◠)
How to contribute:
- Open pull request with improvements
- Discuss ideas in issues
- Spread the word
- Reach out with any feedback