Socket
Socket
Sign inDemoInstall

@rqt/ip

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@rqt/ip

Returns a public IP address of the host.


Version published
Weekly downloads
11
increased by83.33%
Maintainers
1
Weekly downloads
 
Created
Source

@rqt/ip

npm version

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

yarn add -E @rqt/ip

Table Of Contents

API

The package is available by importing its default function:

import ip from '@rqt/ip'

ip(
  options?: Options,
): void

Returns the IP address as seen by an external web-server.

Options: Options for the request.

NameTypeDescriptionDefault
hoststringThe address from which to get the IP address.https://api.ipify.org
const GetIp = async (host) => {
  const res = await ip({ host })
  return res
}
127.0.0.1

(c) Rqt 2018

Keywords

FAQs

Package last updated on 16 Nov 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc