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:
parent
c5c28c3d50
commit
5e5ec2cd1e
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user