Skip to content

Console functions

Functions related to the console

Print messages to the console

Parameters

  • message - Message to print to the console
    • Type: string
  • status - Status of the message
    • Type: "error" | "info" | "file" | "success" | "start" | undefined
  • status - If true, prints the message on a new line
    • Type: boolean | undefined

Example

ts
print("Starting application", "start");
print("Processing information", "info", true);
print("info.txt", "file");
print("Information processed", "success");
print("Application failed", "error", true);
Starting application...

Processing information
- info.txt
✓ Information processed

⚠ Application failed

Built by Prozilla