From 2d1ff91953fbfa0aa7370eff6125c8a315be8875 Mon Sep 17 00:00:00 2001 From: Leonardo Peixoto <67864816+peixotoleonardo@users.noreply.github.com> Date: Sat, 29 Jun 2024 10:57:49 -0300 Subject: [PATCH] doc: add esm example for os MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/nodejs/node/pull/53604 Reviewed-By: Yagiz Nizipli Reviewed-By: Vinícius Lourenço Claro Cardoso Reviewed-By: Rafael Gonzaga Reviewed-By: Luigi Pinca --- doc/api/os.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/doc/api/os.md b/doc/api/os.md index ff2e5e4d243837..fec69aaf47527a 100644 --- a/doc/api/os.md +++ b/doc/api/os.md @@ -9,7 +9,11 @@ The `node:os` module provides operating system-related utility methods and properties. It can be accessed using: -```js +```mjs +import os from 'node:os'; +``` + +```cjs const os = require('node:os'); ```