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 89aa838

Browse filesBrowse files
avivkelleraduh95
authored andcommitted
doc: add esm example in path.md
PR-URL: #55745 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Chemi Atlow <chemi@atlow.co.il> Reviewed-By: Ulises Gascón <ulisesgascongonzalez@gmail.com>
1 parent ee12431 commit 89aa838
Copy full SHA for 89aa838

File tree

Expand file treeCollapse file tree

1 file changed

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

1 file changed

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

‎doc/api/path.md‎

Copy file name to clipboardExpand all lines: doc/api/path.md
+5-1Lines changed: 5 additions & 1 deletion
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,14 @@
99
The `node:path` module provides utilities for working with file and directory
1010
paths. It can be accessed using:
1111

12-
```js
12+
```cjs
1313
const path = require('node:path');
1414
```
1515

16+
```mjs
17+
import path from 'node:path';
18+
```
19+
1620
## Windows vs. POSIX
1721

1822
The default operation of the `node:path` module varies based on the operating

0 commit comments

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