Skip to content

Commit

Permalink
os: deprecate tmpDir() in favour of tmpdir()
Browse files Browse the repository at this point in the history
`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 Jun 30, 2016
1 parent c5c28c3 commit 5e5ec2c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/os.js
Expand Up @@ -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();
Expand Down

0 comments on commit 5e5ec2c

Please sign in to comment.