SipaEnv
SipaEnv
SipaEnv
Tool class with environment dependent methods
- SipaEnv
- .version() →
string - .name() →
string - .description() →
string - .isRunningLocalHost() →
boolean - .isDebugMode() →
boolean - .debugLog(text)
- .version() →
SipaEnv.version() → string
Get the current version of your app.
The returned value within this method will automatically be updated from your package.json at every release build cycle.
SipaEnv.name() → string
Get the current name of your app.
The returned value within this method will automatically be updated from your package.json at every release build cycle.
SipaEnv.description() → string
Get the current description of your app.
The returned value within this method will automatically be updated from your package.json at every release build cycle.
SipaEnv.isRunningLocalHost() → boolean
Check if Sipa is running at localhost.
Returns: boolean - true if localhost, otherwise false
SipaEnv.isDebugMode() → boolean
Check if debug mode is enabled
The debug mode can be enabled, by adding a query parameter 'debug=true' into your URL
Returns: boolean - true if enabled, otherwise false
SipaEnv.debugLog(text)
Debug output on console if debug mode is enabled
| Param | Type |
|---|---|
| text | string | any |