mipa

1.0.1 • Public • Published

Mipa

Machine IP Address. Gather metadata about a machine's public IP address using ifconfig.io.

Installation

npm i mipa

Usage

import mipa from 'mipa'

await mipa()

An object containing the following fields will be returned:

{
  ip: ..., // The machine's public IP address.
  port: ..., // The ephemeral port which was used to connect to ifconfig.io.
  country_code: ..., // Course location of the IP address.
}

Package Sidebar

Install

npm i mipa

Weekly Downloads

1

Version

1.0.1

License

MIT

Unpacked Size

1.31 kB

Total Files

3

Last publish

Collaborators

  • oelin