@cidrak/ifaces
v1.0.4
Published
Get all active local IP addresses in Node.js as an object
Downloads
1
Maintainers
Readme
@cidrak/ifaces
Example:
const ifaces = require('ifaces');
console.log(ifaces()); // Results: [ "192.168.137.1", "10.0.0.16", ... ]
console.log(ifaces("IPv6")); // Results: [ "xxxx::xxxx:xxxx:xxx:xxxx", ... ]