PackwizJS/docs/parser/classes/IndexFileEntry.md
2025-02-09 10:00:02 -06:00

1.5 KiB

packwizjs


packwizjs / parser / IndexFileEntry

Class: IndexFileEntry

Defined in: parser.ts:30

Represents a file entry in the Packwiz index.

Constructors

new IndexFileEntry()

new IndexFileEntry(file, hash, hashFormat, alias?, metafile?, preserve?): IndexFileEntry

Defined in: parser.ts:31

Parameters

file

Resource

hash

string

hashFormat

HashFormat

alias?

string

metafile?

boolean = false

preserve?

boolean = false

Returns

IndexFileEntry

Properties

alias?

readonly optional alias: string

Defined in: parser.ts:35


file

readonly file: Resource

Defined in: parser.ts:32


hash

readonly hash: string

Defined in: parser.ts:33


hashFormat

readonly hashFormat: HashFormat

Defined in: parser.ts:34


metafile

readonly metafile: boolean = false

Defined in: parser.ts:36


preserve

readonly preserve: boolean = false

Defined in: parser.ts:37

Methods

parse()

parse(): Promise<Metafile>

Defined in: parser.ts:47

Returns

Promise<Metafile>