From b98bc3e2ed1741b2b41e632ef8736953c4b9ccbd Mon Sep 17 00:00:00 2001 From: Milkshiift <99212308+Milkshiift@users.noreply.github.com> Date: Sat, 21 Dec 2024 23:23:25 +0200 Subject: [PATCH] Delete test.ts --- test.ts | 16 ---------------- 1 file changed, 16 deletions(-) delete mode 100644 test.ts diff --git a/test.ts b/test.ts deleted file mode 100644 index ad65b62..0000000 --- a/test.ts +++ /dev/null @@ -1,16 +0,0 @@ -import fs from "node:fs"; -import { extractKeysAtLevel } from "./build/cursedJson.ts"; - -const file = (await fs.promises.readFile("./src/settingsSchema.ts", "utf-8")).split("settingsSchema = ").pop()!; -console.log(extractKeysAtLevel(file, 2)) -//const categories = extractKeysAtLevel(file, 1); -//for (const category of categories) { -// const result = extractJSON(file, [category]); -// const keys = extractKeysAtLevel(result, 1); -// for (const key of keys) { -// const name = extractJSON(result, [key, "name"]); -// const description = extractJSON(result, [key, "description"]); -// console.log(name, description); -// } -//} -