Skip to content

Commit

Permalink
doc: add esm path import
Browse files Browse the repository at this point in the history
  • Loading branch information
Aviv Keller authored Nov 6, 2024
1 parent 6f12f1e commit d5ac1ee
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion doc/api/path.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,12 @@
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

Expand Down

0 comments on commit d5ac1ee

Please sign in to comment.