@hashgraph/solo
Version:
An opinionated CLI tool to deploy and manage private Hedera Networks.
33 lines (32 loc) • 1.23 kB
TypeScript
/**
* Utility class for determining the operating system platform.
* Provides methods to check if the current OS is Windows, Linux, or macOS.
*/
export declare class OperatingSystem {
static OS_WIN32: string;
static OS_DARWIN: string;
static OS_LINUX: string;
/**
* Returns true if the Node.js `process.platform` is win32, false otherwise.
*/
static isWin32(): boolean;
/**
* Returns true if the Node.js `process.platform` is linux, false otherwise.
*/
static isLinux(): boolean;
/**
* Returns true if the Node.js `process.platform` is darwin, false otherwise.
*/
static isDarwin(): boolean;
/**
* 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.
*/
static getPlatform(): string;
/**
* 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.
*/
static getFormattedPlatform(): string;
}