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 28ee410

Browse filesBrowse files
ZYSzysMylesBorins
authored andcommitted
doc: simplify path.basename() on POSIX and Windows
PR-URL: #23864 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent 09faedf commit 28ee410
Copy full SHA for 28ee410

File tree

Expand file treeCollapse file tree

1 file changed

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

1 file changed

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

‎doc/api/path.md‎

Copy file name to clipboardExpand all lines: doc/api/path.md
+1-3Lines changed: 1 addition & 3 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,7 @@ on which a Node.js application is running. Specifically, when running on a
1818
Windows operating system, the `path` module will assume that Windows-style
1919
paths are being used.
2020

21-
For example, using the `path.basename()` function with the Windows file path
22-
`C:\temp\myfile.html`, will yield different results when running on POSIX than
23-
when run on Windows:
21+
So using `path.basename()` might yield different results on POSIX and Windows:
2422

2523
On POSIX:
2624

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.