ballerina/os

Overview

This module provides APIs to retrieve information about the environment variables and the current users of the Operating System.

The APIs are platform-independent, i.e., uniform across all operating systems.

For information on the operations, which you can perform with the os module, see the below Functions.

Functions

[3]

getEnv

Returns the environment variable value associated with the provided name.

getUserHome

Returns the current user's home directory path.

getUsername

Returns the current user's name.