Skip to content

Commit d0417ea

Browse files
avivkellermarco-ippolito
authored andcommitted
doc: add esm example in path.md
PR-URL: #55745 Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Chemi Atlow <[email protected]> Reviewed-By: Ulises Gascón <[email protected]>
1 parent 032ff07 commit d0417ea

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

doc/api/path.md

+5-1
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)