Skip to content

Commit 16d55f1

Browse files
peixotoleonardomarco-ippolito
authored andcommitted
doc: add esm example for os
PR-URL: #53604 Reviewed-By: Yagiz Nizipli <yagiz.nizipli@sentry.io> Reviewed-By: Vinícius Lourenço Claro Cardoso <contact@viniciusl.com.br> Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
1 parent 1e9ff50 commit 16d55f1

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

doc/api/os.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,11 @@
99
The `node:os` module provides operating system-related utility methods and
1010
properties. It can be accessed using:
1111

12-
```js
12+
```mjs
13+
import os from 'node:os';
14+
```
15+
16+
```cjs
1317
const os = require('node:os');
1418
```
1519

0 commit comments

Comments
 (0)