Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/packwiz/mod.ts>Pack

Deno wrapper around packwiz CLI
Latest
namespace Pack
import { Pack } from "https://deno.land/x/packwiz@0.1.0/mod.ts";
class Pack
import { Pack } from "https://deno.land/x/packwiz@0.1.0/mod.ts";

Constructors

new
Pack(rootDir?: string)

Instantiate a packwiz modpack.

Warning: during initialization, this will synchronously read the pack. toml, index.toml, and all metafiles from disk.

Properties

readonly
file: PackFile
readonly
index: IndexFile
readonly
indexFilePath: string
readonly
metaFiles
readonly
modLoader: ModLoader
readonly
modLoaderVersion: string
readonly
mods
readonly
modSlugs
name: string
readonly
otherFiles
readonly
packFilePath: string
readonly
resourcePacks
readonly
resourcePackSlugs
version: string

Methods

add(
type: "curseforge",
slugOrSearchOrURL: string,
options?: CurseforgeAddOptions,
): Promise<void>
add(
type: "modrinth",
slugOrSearchOrURL: string,
options?: ModrinthAddOptions,
): Promise<void>
addExternal(name: string, url: string)

CurseForge only. Detects .jars and creates metafiles for them.

export(type: "curseforge", options?: CurseForgeExportOptions): Promise<void>
export(type: "modrinth", options?: ModrinthExportOptions): Promise<void>
importModpack(zipFilePath: string)

CurseForge only.

CurseForge only.

remove(slugOrFilePath: string)
update(slug: string)