Skip to content

Commit 5e5ec2c

Browse files
committed
os: deprecate tmpDir() in favour of tmpdir()
`tmpdir()` was introduced as replacement 3 years ago in 3fe6aba PR-URL: #6739 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent c5c28c3 commit 5e5ec2c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/os.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@ exports.tmpdir = function() {
5151
return path;
5252
};
5353

54-
exports.tmpDir = exports.tmpdir;
54+
exports.tmpDir = internalUtil.deprecate(exports.tmpdir,
55+
'os.tmpDir() is deprecated. Use os.tmpdir() instead.');
5556

5657
exports.getNetworkInterfaces = internalUtil.deprecate(function() {
5758
return exports.networkInterfaces();

0 commit comments

Comments
 (0)