I am using this library getmac to get the MAC address of the server on which the nodejs is running. Basically the API to get the MAC address is async but I want to use it as sync call. Is this possible without using any libraries like sync, deasync etc?
//async API require('getmac').getMac(function(err,macAddress){ if (err) throw err console.log(macAddress) })