Update documentation
All checks were successful
Actions / Build and Push Documentation (push) Successful in 13s

This commit is contained in:
CoastalCommits 2025-02-09 19:32:05 +00:00
parent 067fd34519
commit 6f25c57371

View file

@ -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',