Home > @infiniteobjects/core-library-node > Environment
Utilities to work with environment variables
Signature:
export declare class Environment
Method | Modifiers | Description |
---|---|---|
get(key) | static |
Gets the environment key casted to a primitive or the default value |
get(key, defaultVal) | static |
|
get(key, defaultVal) | static |
|
get(key, defaultVal) | static |
|
getAppName() | static |
Returns the Application Name |
getAppVersion() | static |
Gets the application version |
getHost() | static |
Gets the device hostname |
getNodeEnv() | static |
Gets the nodeENV valuse |
getOrThrow(key) | static |
Gets the environment key casted to a primitive or throws an error |
getSentryEnvironment() | static |
Gets a valid Sentry Env |
getSentryRelease() | static |
Gets a Sentry Release |