Skip to content

Commit

Permalink
doc: add esm example in path.md
Browse files Browse the repository at this point in the history
PR-URL: #55745
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Chemi Atlow <[email protected]>
Reviewed-By: Ulises Gascón <[email protected]>
  • Loading branch information
RedYetiDev authored and aduh95 committed Nov 9, 2024
1 parent ee12431 commit 89aa838
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion doc/api/path.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 89aa838

Please sign in to comment.