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 <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>
  • Loading branch information
peixotoleonardo authored and marco-ippolito committed Aug 19, 2024
1 parent d000862 commit 4832103
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 4832103

Please sign in to comment.