UNPKG

node-pkware

Version:

node.js implementation of StormLib's pkware compressor/de-compressor

25 lines 1.07 kB
/** * Compression types for implode */ export var Compression; (function (Compression) { Compression[Compression["Unknown"] = -1] = "Unknown"; Compression[Compression["Binary"] = 0] = "Binary"; Compression[Compression["Ascii"] = 1] = "Ascii"; })(Compression || (Compression = {})); /** * Dictionary sizes for implode, determines how well the file get compressed. * * Small dictionary size means less memory to lookback in data for repetitions, * meaning it will be less effective, the file stays larger, less compressed. * On the other hand, large compression allows more lookback allowing more effective * compression, thus generating smaller, more compressed files. */ export var DictionarySize; (function (DictionarySize) { DictionarySize[DictionarySize["Unknown"] = -1] = "Unknown"; DictionarySize[DictionarySize["Small"] = 4] = "Small"; DictionarySize[DictionarySize["Medium"] = 5] = "Medium"; DictionarySize[DictionarySize["Large"] = 6] = "Large"; })(DictionarySize || (DictionarySize = {})); //# sourceMappingURL=constants.js.map