|
@ -30,13 +30,22 @@ exports.cpus = binding.getCPUs; |
|
|
exports.type = binding.getOSType; |
|
|
exports.type = binding.getOSType; |
|
|
exports.release = binding.getOSRelease; |
|
|
exports.release = binding.getOSRelease; |
|
|
exports.networkInterfaces = 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; |
|
|
}; |
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
exports.tmpDir = function() { |
|
|
|
|
|
return process.env.TMPDIR || |
|
|
|
|
|
process.env.TMP || |
|
|
|
|
|
process.env.TEMP || |
|
|
|
|
|
(process.platform === 'win32' ? 'c:\\windows\\temp' : '/tmp'); |
|
|
|
|
|
}; |
|
|
|
|
|
|
|
|
exports.getNetworkInterfaces = function() { |
|
|
exports.getNetworkInterfaces = function() { |
|
|
return exports.networkInterfaces(); |
|
|
return exports.networkInterfaces(); |
|
|
}; |
|
|
}; |
|
|