Node.js API compatibility - OS
This documentation explores the usage and compatibility of the Node.js OS module within the Azion Runtime. The OS module provides a variety of operating system-related utility methods and properties.
The os module in Node.js provides a set of operating system-related utility methods and properties. It allows developers to interact with the underlying operating system, making it easier to gather system information and perform OS-specific tasks. This module is available in the Azion Runtime through Node.js compatibility, and a typical use case is reading environment details, such as the platform or architecture, from within a function.
The example below shows how to use the os module in a function: