Optional
asarBytes: Uint8ArrayOptional
initialGets the Asar archive data
Options for getting the data and what to return
The Asar archive data, and more if specified in the options
The raw Asar archive data that can be saved to a file.
Optional
header?: DirectoryEntryDataOptional
headerOptional
rawOptional
rawGets the Asar archive data and saves it to a file
The path to save the Asar archive to
Options passed to Asar.getData
Walks through the directory and recursively yields all files and directories.
Whether to include directories in the result.
Used internally for recursion.
Writes to a file inside the Asar archive
The path to the file inside the Asar archive
The data to write to the file
Whether to create directories in between if they don't exist
Static
fromCreates an entry from the given entry data.
The entry data to create the entry from.
Static
fromCreates a new Asar instance from a directory
The directory to read from
Optional
opts: Partial<AsarOptions>Options for initialising the Asar instance
The Asar instance
Static
fromCreates a new Asar instance from an Asar archive file
The path to the Asar archive file
Optional
opts: Partial<AsarOptions>Options for initialising the Asar instance
The Asar instance
Static
isChecks whether the given entry is a directory.
The entry or entry data to check.
Static
isStatic
isStatic
Private
readGenerated using TypeDoc
A directory entry.