Skip to content

Commit c93622d

Browse files
author
Leonardo Peixoto
committed
doc: add esm example for os
1 parent 8e5d88b commit c93622d

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)