Start of auto updates

This commit is contained in:
Gregory Schier
2023-03-12 18:04:11 -07:00
parent a709e4b19f
commit 9dfe3db720
13 changed files with 301 additions and 101 deletions

View File

@@ -0,0 +1,7 @@
export function tryFormatJson(text: string): string {
try {
return JSON.stringify(JSON.parse(text), null, 2);
} catch (_) {
return text;
}
}