lib/index.js
function findIntf(intf, osIntfs) {
  var keys = Object.keys(osIntfs);
  for (var i = 0, len = keys.length; i < len; i++) {
    var key = keys[i];

    if (intf === key) {
      return osIntfs[key];
    }
  }

  return null;
}
function findIntf(intf, osIntfs) {
  var keys = Object.keys(osIntfs);
  for (var i = 0, len = keys.length; i < len; i++) {
    var key = keys[i];

    if (intf === key) {
      return osIntfs[key];
    }
  }

  return null;
}
function findIntf ( intf , osIntfs ) { var keys = Object . keys ( osIntfs ) ; for ( var i = 0 , len = keys . length ; i < len ; i ++ ) { var key = keys [ i ] ; if ( intf === key ) { return osIntfs [ key ] ; } } return null ; }
Find the interface by interface name in the data returned by os.networkInterfaces.
@param intf
@param osIntfs
Find the interface by interface name in the data returned by os . networkInterfaces .