Update Files

This commit is contained in:
2025-01-22 16:18:30 +01:00
parent ed4603cf95
commit a36294b518
16718 changed files with 2960346 additions and 0 deletions

View File

@ -0,0 +1,37 @@
let myInfo = function (text: string, newline: boolean) {
if (newline) {
console.log(text);
}
else {
process.stdout.write(text);
}
};
let myError = function (text: string, newline: boolean) {
if (newline) {
console.error(text);
}
else {
process.stderr.write(text);
}
};
export function set(log: {info: (text: string, newline: boolean) => void, error: (text: string, newline: boolean) => void}) {
myInfo = log.info;
myError = log.error;
}
export function silent(showErrors: boolean = false) {
myInfo = function () {};
if (!showErrors) {
myError = function () {};
}
}
export function info(text: string, newline: boolean = true) {
myInfo(text, newline);
}
export function error(text: string, newline: boolean = true) {
myError(text, newline);
}