reachable-network-interfaces

1.0.0 • Public • Published

reachable-network-interfaces

find reachable network interfaces for services that bind to ports

Table of Contents

Install

npm install reachable-network-interfaces

Usage

const services = {
  http: 80,
  foobar: 4242
}

reachableNetworkInterfaces(services, (err, val) => {
  if (err) throw err

  console.log(val) /* => {
    http: [],
    foobar: {
      address: '127.0.0.1',
      netmask: '255.0.0.0',
      family: 'IPv4',
      mac: '00:00:00:00:00:00',
      internal: true,
      cidr: '127.0.0.1/8'
    }
  }
})

Maintainers

@fraction

Contributing

PRs accepted.

License

ISC © 2019 Fraction LLC

Dependencies (0)

    Dev Dependencies (1)

    Package Sidebar

    Install

    npm i reachable-network-interfaces

    Weekly Downloads

    2

    Version

    1.0.0

    License

    ISC

    Unpacked Size

    5.42 kB

    Total Files

    4

    Last publish

    Collaborators

    • christianbundy