Skip to content

Commit

Permalink
doc: add esm example for os
Browse files Browse the repository at this point in the history
PR-URL: nodejs#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 committed Jun 29, 2024
1 parent 7771025 commit b291605
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 b291605

Please sign in to comment.