Skip to content

@zenfs/archives

Backends for archive files. These create readonly file systems.

Terminal window
npm install @zenfs/archives

Reference generated from v1.5.0.

Backend Description
Zip .zip files (PK Zip).
Iso .iso files (ISO 9660).
Tar .tar files. POSIX/USTAR is the most compatible, though gnu/oldgnu format tar files are also supported.

Archive backends take the archive’s contents as their data option:

import { configure } from '@zenfs/core';
import { Zip } from '@zenfs/archives';
const res = await fetch('mydata.zip');
await configure({
mounts: {
'/mnt/zip': { backend: Zip, data: await res.arrayBuffer() },
},
});

To mount an archive at runtime rather than during configuration, see Using ZenFS.