import {ModuleData} from "@league-of-foundry-developers/foundry-vtt-types/src/foundry/common/packages.mjs";
import Globals from "../Globals";

export const getModuleInformation = async (): Promise<ModuleData> => {
	const systemOrModule = Globals.isModule ? "module" : "system"
	const module = await fetch(systemOrModule + "s/" + Globals.name + "/" + systemOrModule + ".json")
	return await module.json();
};