mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-17 17:36:08 +08:00
10 lines
272 B
JavaScript
10 lines
272 B
JavaScript
import 'streamsaver/examples/zip-stream';
|
|
|
|
export const createZipStream = window.ZIP;
|
|
|
|
export async function createZipBlob(underlyingSource) {
|
|
return new Response(createZipStream(underlyingSource)).blob();
|
|
}
|
|
|
|
window.Hydro.utils.zip = { createZipStream, createZipBlob };
|