JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 81
  • Score
    100M100P100Q64879F
  • 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

Get local, docker and public IP addresses

Install

Package use

npm install ips --save

CLI

npm install ips -g

Examples

Command line

ips

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', public: '70.22.12.182' }
})

License: MIT