A file system that writes files into a ZIP archive.
Creates a ZIP file containing all written files. Used internally for bundled output formats like .sog files.
const outputWriter = await fs.createWriter('bundle.zip');const zipFs = new ZipFileSystem(outputWriter);// Write files into the zipconst writer = await zipFs.createWriter('data.json');await writer.write(jsonData);await writer.close();// Finalize the zipawait zipFs.close(); Copy
const outputWriter = await fs.createWriter('bundle.zip');const zipFs = new ZipFileSystem(outputWriter);// Write files into the zipconst writer = await zipFs.createWriter('data.json');await writer.write(jsonData);await writer.close();// Finalize the zipawait zipFs.close();
A file system that writes files into a ZIP archive.
Creates a ZIP file containing all written files. Used internally for bundled output formats like .sog files.
Example