diff --git a/doc/api/path.md b/doc/api/path.md index 8f1bf61ba2f25d..eb558e73592e4d 100644 --- a/doc/api/path.md +++ b/doc/api/path.md @@ -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