@twilio/flex-plugins-utils-env
Version:
Flex Plugins Environments
42 lines (22 loc) • 1.19 kB
Markdown


[](../../LICENSE)
Utility for returning environment variables. It is an isomorphic JavaScript module.
Returns `true` if OS is Windows. It will return false if script is running on the browser.
If the module is used on the server, it will set the environment variable to persist the terminal logs.
Whether the terminal should be persisted or not. Only works on the server.
Whether the scripts should be quiet (no logs). Only works on the server.
### isDebug
Returns true if the log level is debug. Works on both the browser and the server.
### isTrace
Returns true if the log level is trace. Works on both the browser and the server.
### getRegion
Returns the region. Will use the process env if running on the server, otherwise uses the windows.location.
### isCI
Returns true if script running in CI. Works on the server only.