Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/packwiz/mod.ts

Deno wrapper around packwiz CLI
Latest
import * as packwiz from "https://deno.land/x/packwiz@0.1.0/mod.ts";

Programmatically manage a packwiz modpack with Deno.

Examples

Example 1

import { Pack } from "https://deno.land/x/packwiz@0.1.0/mod.ts";

const pack = new Pack("path/to/pack/directory");

await pack.add("curseforge", "quark"); // creates mods/quark.pw.toml
console.log(pack.mods.quark); // contents of mods/quark.pw.toml
await pack.update("quark"); // updates mods/quark.pw.toml
await pack.remove("quark"); // removes mods/quark.pw.toml

Functions

Initialize a new Packwiz modpack using the latest version of your chosen mod loader. If you need to use a specific version of a mod loader, use the packwiz CLI directly.

Write pack.toml in the same shape as the original.