From 6f25c5737110df2a54f0abc005b91b6fd2d8e420 Mon Sep 17 00:00:00 2001 From: CoastalCommits Date: Sun, 9 Feb 2025 19:32:05 +0000 Subject: [PATCH] Update documentation --- docs/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/README.md b/docs/README.md index 68bf5a6..2b40d8d 100644 --- a/docs/README.md +++ b/docs/README.md @@ -18,7 +18,7 @@ See the [documentation](./docs) for more information. ```ts > import { parsePackwiz } from "packwizjs"; -> const packwizFile = parsePackwiz("./packwiz/pack.toml") +> const packwizFile = await parsePackwiz("./packwiz/pack.toml") Packwiz { location: Resource { path: './packwiz/pack.toml' }, index: { // The index file is automatically parsed alongside the pack.toml file @@ -46,7 +46,7 @@ Packwiz { liteloader: undefined } } -> packwizFile.index.files[2].parse() +> await packwizFile.index.files[2].parse() { name: 'Fabric API', filename: 'fabric-api-0.115.1+1.21.4.jar',