mirror of
https://github.com/nodejs/node.git
synced 2026-11-30 11:55:44 -05:00
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:
1 parent
ee12431298
commit
89aa83842a
1 file changed
+5
-1
+5
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user