MCPcopy Create free account
hub / github.com/Stuk/jszip / findCompression

Function findCompression

lib/zipEntry.js:18–28  ·  view source on GitHub ↗
(compressionMethod)

Source from the content-addressed store, hash-verified

16 * @return {Object|null} the JSZip compression object, null if none found.
17 */
18var findCompression = function(compressionMethod) {
19 for (var method in compressions) {
20 if (!Object.prototype.hasOwnProperty.call(compressions, method)) {
21 continue;
22 }
23 if (compressions[method].magic === compressionMethod) {
24 return compressions[method];
25 }
26 }
27 return null;
28};
29
30// class ZipEntry {{{
31/**

Callers 1

zipEntry.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected