Node.js v18.12.1 documentation


Table of contents

OS#

Stability: 2 - Stable

Source Code: lib/os.js

The node:os module provides operating system-related utility methods and properties. node:os模块提供与操作系统相关的实用程序方法和属性。It can be accessed using:可通过以下方式访问:

const os = require('node:os');