Skip to content

Commit

Permalink
doc: add esm example for os
Browse files Browse the repository at this point in the history
  • Loading branch information
peixotoleonardo committed Jun 28, 2024
1 parent 8e5d88b commit e457486
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 e457486

Please sign in to comment.