|
@ -29,10 +29,20 @@ exports.totalmem = binding.getTotalMem; |
|
|
exports.cpus = binding.getCPUs; |
|
|
exports.cpus = binding.getCPUs; |
|
|
exports.type = binding.getOSType; |
|
|
exports.type = binding.getOSType; |
|
|
exports.release = binding.getOSRelease; |
|
|
exports.release = binding.getOSRelease; |
|
|
exports.getNetworkInterfaces = binding.getInterfaceAddresses; |
|
|
exports.networkInterfaces = binding.getInterfaceAddresses; |
|
|
exports.arch = function() { |
|
|
exports.arch = function() { |
|
|
return process.arch; |
|
|
return process.arch; |
|
|
}; |
|
|
}; |
|
|
exports.platform = function() { |
|
|
exports.platform = function() { |
|
|
return process.platform; |
|
|
return process.platform; |
|
|
}; |
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
var warnNetworkInterfaces = true; |
|
|
|
|
|
exports.getNetworkInterfaces = function() { |
|
|
|
|
|
if (warnNetworkInterfaces) { |
|
|
|
|
|
console.error("os.getNetworkInterfaces() is deprecated - use os.networkInterfaces()"); |
|
|
|
|
|
console.trace(); |
|
|
|
|
|
warnNetworkInterfaces = false; |
|
|
|
|
|
} |
|
|
|
|
|
return exports.networkInterfaces(); |
|
|
|
|
|
}; |
|
|