From d5ac1ee065fe5fcf36daea66db6bc9020843b34a Mon Sep 17 00:00:00 2001 From: Aviv Keller Date: Wed, 6 Nov 2024 07:22:31 -0500 Subject: [PATCH 1/2] doc: add esm path import --- doc/api/path.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/doc/api/path.md b/doc/api/path.md index 8f1bf61ba2f25d..126c34fbaf9699 100644 --- a/doc/api/path.md +++ b/doc/api/path.md @@ -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 From 177b202cf3ff168a9d11d3bd91c009bfb5bbea79 Mon Sep 17 00:00:00 2001 From: Aviv Keller Date: Wed, 6 Nov 2024 07:28:21 -0500 Subject: [PATCH 2/2] fixup! --- doc/api/path.md | 1 + 1 file changed, 1 insertion(+) diff --git a/doc/api/path.md b/doc/api/path.md index 126c34fbaf9699..eb558e73592e4d 100644 --- a/doc/api/path.md +++ b/doc/api/path.md @@ -12,6 +12,7 @@ paths. It can be accessed using: ```cjs const path = require('node:path'); ``` + ```mjs import path from 'node:path'; ```