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

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

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
Родитель c5c28c3d50
Коммит 5e5ec2cd1e
1 изменённых файлов: 2 добавлений и 1 удалений

Просмотреть файл

@ -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();