index.js
function findInterfaces (targets) {
  if (!targets) targets = []

  targets = targets.map(target => target.toLowerCase())

  if (process.platform === 'darwin') {
    return findInterfacesDarwin(targets)
  } else if (process.platform === 'linux') {
    return findInterfacesLinux(targets)
  } else if (process.platform === 'win32') {
    return findInterfacesWin32(targets)
  }
}
function findInterfaces (targets) {
  if (!targets) targets = []

  targets = targets.map(target => target.toLowerCase())

  if (process.platform === 'darwin') {
    return findInterfacesDarwin(targets)
  } else if (process.platform === 'linux') {
    return findInterfacesLinux(targets)
  } else if (process.platform === 'win32') {
    return findInterfacesWin32(targets)
  }
}
function findInterfaces ( targets ) { if ( ! targets ) targets = [ ] targets = targets . map ( target => target . toLowerCase ( ) ) if ( process . platform === 'darwin' ) { return findInterfacesDarwin ( targets ) } else if ( process . platform === 'linux' ) { return findInterfacesLinux ( targets ) } else if ( process . platform === 'win32' ) { return findInterfacesWin32 ( targets ) } }
Returns the list of interfaces found on this machine as reported by the
`networksetup` command.
@param {Array.<string>|null} targets
@return {Array.<Object>)}
Returns the list of interfaces found on this machine as reported by the networksetup command .