doc: add esm example in path.md

PR-URL: https://github.com/nodejs/node/pull/55745
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Chemi Atlow <chemi@atlow.co.il>
Reviewed-By: Ulises Gascón <ulisesgascongonzalez@gmail.com>
This commit is contained in:
Aviv Keller authored and Antoine du Hamel committed 2024-11-09 22:41:07 +01:00
1 parent ee12431298
commit 89aa83842a
1 file changed
+5 -1
+5 -1
View File
@@ -9,10 +9,14 @@
The `node:path` module provides utilities for working with file and directory
paths. It can be accessed using:
```js
```cjs
const path = require('node:path');
```
```mjs
import path from 'node:path';
```
## Windows vs. POSIX
The default operation of the `node:path` module varies based on the operating