How to use the getmac.isMac function in getmac

To help you get started, we’ve selected a few getmac examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github roccomuso / kickthemout / lib / Network.js View on Github external
nodeARP.getMAC(ip, function (err, mac) {
          if (!err && mac) {
            if (getmac.isMac(mac)) {
              result.push({ip: ip, mac: mac})
            }
          }
          if ((++count) > 254) {
            self.hosts = result
            cb(result)
          }
        })
      })(ip)
github roccomuso / kickthemout / lib / scan.js View on Github external
nodeARP.getMAC(ip, function(err, mac) {
              if (!err && mac) {
                if (getmac.isMac(mac))
                      result.push({ip: ip, mac: mac})
              }
              if ((++count) > 254) cb(null, result)
          });
      })(ip)

getmac

Get the MAC address of the current machine you are on.

Artistic-2.0
Latest version published 12 months ago

Package Health Score

68 / 100
Full package analysis

Popular getmac functions