Permalink
Browse files

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

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

PR-URL: #6739
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
  • Loading branch information...
Fishrock123 committed May 13, 2016
1 parent c5c28c3 commit 5e5ec2cd1ee875ec5c837b5e0721d73628f12053
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/os.js
@@ -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();

0 comments on commit 5e5ec2c

Please sign in to comment.