react-public-ip

1.0.0 • Public • Published

react-public-ip

Get public IP address in React

Install

$ npm install react-public-ip

Usage

const publicIp = require("react-public-ip");
 
const ipv4 = await publicIp.v4() || "";
const ipv6 = await publicIp.v6() || "";
 

Package Sidebar

Install

npm i react-public-ip

Weekly Downloads

2,632

Version

1.0.0

License

MIT

Unpacked Size

2.44 kB

Total Files

4

Last publish

Collaborators

  • thangtkt