1.2.2 • Published 5 years ago

@rqt/ip v1.2.2

Weekly downloads
-
License
MIT
Repository
github
Last release
5 years ago

@rqt/ip

npm version

@rqt/ip Returns a public IP address of the host.

yarn add @rqt/ip

Table 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

Copyright

1.2.2

5 years ago

1.2.1

5 years ago

1.2.0

5 years ago

1.1.0

5 years ago

1.0.0

6 years ago