Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 5e5ec2c

Browse filesBrowse 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 <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent c5c28c3 commit 5e5ec2c
Copy full SHA for 5e5ec2c

File tree

Expand file treeCollapse file tree

1 file changed

+2
-1
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-1
lines changed
Open diff view settings
Collapse file

‎lib/os.js‎

Copy file name to clipboardExpand all lines: lib/os.js
+2-1Lines changed: 2 additions & 1 deletion
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.