Skip to content

Commit a435aff

Browse files
avivkellerruyadorno
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 91443c2 commit a435aff

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)