os: deprecate tmpDir() in favour of tmpdir()

`tmpdir()` was introduced as replacement 3 years ago in
3fe6aba558efe3f1cac17dd6c0c41fb11443788b

PR-URL: https://github.com/nodejs/node/pull/6739
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
Jeremiah Senkpiel 2016-05-13 12:08:44 -04:00
parent c5c28c3d50
commit 5e5ec2cd1e

View File

@ -51,7 +51,8 @@ exports.tmpdir = function() {
return path;
};
exports.tmpDir = exports.tmpdir;
exports.tmpDir = internalUtil.deprecate(exports.tmpdir,
'os.tmpDir() is deprecated. Use os.tmpdir() instead.');
exports.getNetworkInterfaces = internalUtil.deprecate(function() {
return exports.networkInterfaces();