displayMessage.js 376 B

12345678910111213
  1. const sendToWebConsole = (message) => void message;
  2. const displayMessage = async (...message) => {
  3. console.log(...message);
  4. await sendToWebConsole(message.join(" "));
  5. };
  6. exports.displayMessage = displayMessage;
  7. const displayError = async (...message) => {
  8. console.error(...message);
  9. await sendToWebConsole(message.join(" "));
  10. };
  11. exports.displayError = displayError;