1.0.0 • Published 5 years ago
reachable-network-interfaces v1.0.0
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
Contributing
PRs accepted.
License
ISC © 2019 Fraction LLC
1.0.0
5 years ago