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 - npm Package Compare versions

Comparing version 1.2.0 to 1.2.1

4

CHANGELOG.md
## 1 August 2019
### [1.2.1](https://github.com/rqt/ip/compare/v1.2.0...v1.2.1)
- [package] Fix documentation.
### [1.2.0](https://github.com/rqt/ip/compare/v1.1.0...v1.2.0)

@@ -4,0 +8,0 @@

2

package.json
{
"name": "@rqt/ip",
"version": "1.2.0",
"version": "1.2.1",
"description": "Returns a public IP address of the host.",

@@ -5,0 +5,0 @@ "main": "compile/index.js",

@@ -19,3 +19,3 @@ # @rqt/ip

- [API](#api)
- [`ip(options?: Options)`](#ipoptions-options-void)
- [`async ip(options?: Options): string`](#async-ipoptions-options-string)
* [`_rqt.IpOptions`](#type-_rqtipoptions)

@@ -40,3 +40,3 @@ - [Copyright](#copyright)

## `ip(`<br/>&nbsp;&nbsp;`options?: Options,`<br/>`): void`
## `async ip(`<br/>&nbsp;&nbsp;`options?: Options,`<br/>`): string`

@@ -46,8 +46,19 @@ Returns the IP address as seen by an external web-server.

<strong><a name="type-_rqtipoptions">`_rqt.IpOptions`</a></strong>: Options for the request.
<table>
<thead><tr>
<th>Name</th>
<th>Type &amp; Description</th>
<th>Default</th>
</tr></thead>
<tr>
<td rowSpan="3" align="center">host</td>
<td><em>string</em></td>
<td rowSpan="3"><code>https://api.ipify.org</code></td>
</tr>
<tr></tr>
<tr>
<td>The address from which to get the IP address.</td>
</tr>
</table>
| Name | Type | Description | Default |
| ---- | --------------- | --------------------------------------------- | ----------------------- |
| host | <em>string</em> | The address from which to get the IP address. | `https://api.ipify.org` |
```js

@@ -77,3 +88,3 @@ const GetIp = async (host) => {

</th>
<th>© <a href="https://artd.eco">Art Deco</a> for <a>Rqt</a> 2019</th>
<th>© <a href="https://artd.eco">Art Deco</a> for <a href="https://rqt.biz">Rqt</a> 2019</th>
<th>

@@ -80,0 +91,0 @@ <a href="https://www.technation.sucks" title="Tech Nation Visa">

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