UNPKG

node-pkware

Version:

nodejs implementation of StormLib's pkware compressor/de-compressor

20 lines (19 loc) 816 B
import { type Compression, type DictionarySize } from './constants.js'; import { type StreamHandler } from './stream.js'; import { type Config } from './types.js'; /** * Decompresses stream * @returns a function that you can use as a `transform._transform` method. */ export declare function explode(config?: Config): StreamHandler; /** * Compresses stream * @returns a function that you can use as a `transform._transform` method. */ export declare function implode(compressionType: Compression, dictionarySize: DictionarySize, config?: Config): StreamHandler; export { explode as decompress }; export { implode as compress }; export { Compression, DictionarySize } from './constants.js'; export * as errors from './errors.js'; export * as stream from './stream.js'; export type { Config } from './types.js';