MCPcopy
hub / github.com/gildas-lormeau/zip.js / getOptionValue

Function getOptionValue

index-native.cjs:5805–5808  ·  view source on GitHub ↗
(zipWriter, options, name, defaultValue)

Source from the content-addressed store, hash-verified

5803}
5804
5805function getOptionValue(zipWriter, options, name, defaultValue) {
5806 const result = options[name] === UNDEFINED_VALUE ? zipWriter.options[name] : options[name];
5807 return result === UNDEFINED_VALUE ? defaultValue : result;
5808}
5809
5810function getMaximumCompressedSize(uncompressedSize) {
5811 return uncompressedSize + (5 * (Math.floor(uncompressedSize / 16383) + 1));

Callers 3

closeMethod · 0.70
addFileFunction · 0.70
closeFileFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…