MCPcopy Index your code
hub / github.com/scriptscat/scriptcat / getCompressionMethod

Function getCompressionMethod

src/pkg/utils/jszip-x.ts:158–167  ·  view source on GitHub ↗
(options: { compression?: Compression | null })

Source from the content-addressed store, hash-verified

156export type JSZipObject = JSZippZipObject;
157
158function getCompressionMethod(options: { compression?: Compression | null }): ZipCompressionMethod | undefined {
159 switch (options.compression) {
160 case "STORE":
161 return "store";
162 case "DEFLATE":
163 return "deflate";
164 default:
165 return undefined;
166 }
167}
168
169function getLevel(options: { compression?: Compression | null; compressionOptions?: CompressionOptions | null }) {
170 if (options.compression === "STORE") {

Callers 1

generateAsyncMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected