Class for handling RAR file operations such as listing contents and uncompressing files.
new
Unrar(filepath: string,options?: ConstructorOptions,)
Constructs an Unrar instance.
private
getPercent(ratio: number): string
Calculates the percentage of completion.
private
normalizeKey(key: string): string | undefined
Normalizes a key to a consistent format.
Parses the raw list data into an array of FileInfo objects.
uncompress(): Promise<void>
Uncompresses a file from the RAR archive to a destination directory.