From 5e5ec2cd1ee875ec5c837b5e0721d73628f12053 Mon Sep 17 00:00:00 2001 From: Jeremiah Senkpiel Date: Fri, 13 May 2016 12:08:44 -0400 Subject: [PATCH] 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 Reviewed-By: James M Snell --- lib/os.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/os.js b/lib/os.js index 206e9941625965..cab148581a9db3 100644 --- a/lib/os.js +++ b/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();