Skip to content

Commit

Permalink
doc: add esm example for os
Browse files Browse the repository at this point in the history
PR-URL: #53604
Reviewed-By: Yagiz Nizipli <[email protected]>
Reviewed-By: Vinícius Lourenço Claro Cardoso <[email protected]>
Reviewed-By: Rafael Gonzaga <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
  • Loading branch information
peixotoleonardo authored and aduh95 committed Jul 16, 2024
1 parent 0540308 commit 2d1ff91
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion doc/api/os.md
Original file line number Diff line number Diff line change
Expand Up @@ -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');
```

Expand Down

0 comments on commit 2d1ff91

Please sign in to comment.