JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 130
  • Score
    100M100P100Q67414F
  • License MIT

Get local, docker and public IP addresses

Package Exports

  • ips

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (ips) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

ips \index

Get local, docker and public IP addresses

Install

npm install ips

License: MIT

Examples

Basic

var ips = require('ips')
var result = ips()

console.log(result) // ex: { local: '192.168.10.3', docker: '192.168.10.103' }

With External IP

var ips = require('ips')
ips(function(err, data) {
  console.log(data) // ex: { local: '192.168.10.3', outer: '70.22.12.182' }
})

License: MIT