@hashgraph/solo
    Preparing search index...

    Utility class for determining the operating system platform. Provides methods to check if the current OS is Windows, Linux, or macOS.

    Index

    Constructors

    Properties

    OS_DARWIN: string = 'darwin'
    OS_LINUX: string = 'linux'
    OS_WIN32: string = 'win32'

    Methods

    • Returns a formatted platform string for use in constructing download URLs or file paths. For Windows, it returns 'windows' instead of 'win32' to match common naming conventions in download URLs. For other platforms, it returns the original process.platform value.

      Returns string

    • Returns the current Node.js process.platform value as a string. This should only be used for logging or error messages to indicate the detected platform.

      Returns string