How to use the macaddress.all function in macaddress

To help you get started, we’ve selected a few macaddress 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 logdna / logdna-agent / index.js View on Github external
}, (err, res, body) => {
                if (res && res.statusCode && body) {
                    config.awsid = body.instanceId;
                    config.awsregion = body.region;
                    config.awsaz = body.availabilityZone;
                    config.awsami = body.imageId;
                    config.awstype = body.instanceType;
                }
                macaddress.all((error, all) => {
                    if (error) {
                        utils.log(`error in getting mac address: ${error}`, 'error');
                    }
                    return cb(null, error ? {} : all);
                });
            });
        }

macaddress

Get the MAC addresses (hardware addresses) of the hosts network interfaces.

MIT
Latest version published 2 years ago

Package Health Score

56 / 100
Full package analysis