1.2.2 • Published 6 years ago
@rqt/ip v1.2.2
@rqt/ip
@rqt/ip Returns a public IP address of the host.
yarn add @rqt/ipTable Of Contents
API
The package is available by importing its default function:
import ip from '@rqt/ip'async ip( options?: Options,): string
Returns the IP address as seen by an external web-server.
_rqt.IpOptions: Options for the request.
const GetIp = async (host) => {
const res = await ip({ host })
return res
}127.0.0.1