chore: Switches println to use console.log like formatting.

This commit is contained in:
greysoh 2024-05-06 17:12:56 -04:00
parent dd1c1dbb25
commit ea2fd4bff1
No known key found for this signature in database
GPG key ID: FE0F173B8FC01571

View file

@ -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) {