1.0.1 • Published 1 year ago

mipa v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

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.
}
1.0.1

1 year ago

1.0.0

1 year ago