Length of the remote ZIP archive in bytes
Passed to fetch when performing a HTTP GET request for the file.
Passed to fetch when performing a HTTP GET request for the file
Passed to fetch when performing a HTTP GET request for the file
Records representing the files in the remote ZIP archive
Size of the remote ZIP archive in bytes
Credentials passed to fetch
when retrieving files. Defaults to same-origin
.
Metadata of the remote ZIP archive
HTTP method used to fetch files from the remote ZIP archive
URL of the remote ZIP archive
Gets a single uncompressed file in the remote ZIP archive.
Path of the file in the remote ZIP archive
Additional headers, if any, to be passed to the fetch
request
Inflated (uncompressed) bytes of the requested file
Get a formatted file listing of the remote ZIP archive.
List of files in the remote ZIP archive.
import { RemoteZipPointer } from "remote-zip";
const url = new URL("http://www.example.com/test.zip");
const remoteZip = await new RemoteZipPointer({ url }).populate();
const files = remoteZip.files();
// files = [{ attributes: 1107099648, filename: "text.txt", modified: "2021-06-17T12:28:02", size: 14 }]
Generated using TypeDoc
An initialised object representating a remote ZIP archive.
Best constructed from a
RemoteZipPointer
.