From e4574860d4ae5b08b7abb3801e813d6736e992a8 Mon Sep 17 00:00:00 2001 From: Leonardo Peixoto Date: Fri, 28 Jun 2024 10:32:15 -0300 Subject: [PATCH] doc: add esm example for os --- 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'); ```