Creates an instance of SevenZip
with optional extraction settings.
Optional
options: Partial<UnzipOptions>Partial extraction options.
Generates the arguments for the 7-Zip command-line execution.
Gets the path to the 7-Zip executable.
Sets the archive file to extract.
The path to the archive file.
The SevenUnzip
instance for method chaining.
Sets the destination path for the extraction.
The path to the output folder.
The SevenUnzip
instance for method chaining.
Sets a password for extracting encrypted archives.
The password string.
The SevenUnzip
instance for method chaining.
Returns a string representation of the 7-Zip command with its arguments.
This method constructs the full command-line string that would be executed, ensuring that each argument is properly quoted to handle paths with spaces.
The formatted command-line string.
A wrapper class for extracting files from a 7-Zip archive using the command-line tool.
Example
For additional examples, see the sevenZipUnzip.test.ts or sevenZipUnzipSync.test.ts.