Skip to content

Instantly share code, notes, and snippets.

View mitchkm's full-sized avatar

Mitchell Miller mitchkm

View GitHub Profile
@mitchkm
mitchkm / obsidian.templater.getMCModInfoFromURL.js
Last active April 7, 2025 06:45
Grab basic information for a Minecraft mod given it's URL from Curseforge or Modrinth. Used in conjuction with ObsidianMD + Templater
async function my_function (tp, url) {
let result = {success: false, modInfo: {}};
const modInfoDefaults = {
url: "",
owner: "",
title: "",
description: "",
server_side: true,
client_side: true,
};