From ea2fd4bff1537ddec56d0dc8ffcc72b62b6cf044 Mon Sep 17 00:00:00 2001 From: greysoh Date: Mon, 6 May 2024 17:12:56 -0400 Subject: [PATCH] chore: Switches println to use console.log like formatting. --- lom/src/index.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lom/src/index.ts b/lom/src/index.ts index 0658014..fed295e 100644 --- a/lom/src/index.ts +++ b/lom/src/index.ts @@ -1,4 +1,5 @@ import { readFile, writeFile, mkdir } from "node:fs/promises"; +import { format } from "node:util"; import parseArgsStringToArgv from "string-argv"; import baseAxios from "axios"; @@ -77,7 +78,7 @@ server.on("connection", client => { ); function println(...str: string[]) { - stream.write(str.join(" ").replace("\n", "\r\n")); + stream.write(format(...str).replace("\n", "\r\n")); }; while (true) {