Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@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.

  • 1.2.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2
Maintainers
1
Weekly downloads
 
Created
Source

@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'

ip(
  options?: Options,
): void

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

_rqt.IpOptions: 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

Art Deco © Art Deco for Rqt 2019 Tech Nation Visa Tech Nation Visa Sucks

Keywords

FAQs

Package last updated on 01 Aug 2019

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