zipster
Version:
TypeScript library built for Node backends to create ZIP files with password protection
32 lines • 1.03 kB
TypeScript
import { Options } from './types/Options';
/**
* Zipster facilitates the zipping and protecting of data
*/
declare class Zipster {
/**
* Add a single file to a single ZIP file
*/
static fromPath(path: string, options: Options): Promise<string>;
/**
* Add multiple files to a single ZIP file
*/
static fromPaths(paths: string[], options: Options): Promise<string>;
/**
* Create a ZIP containing all files within specified directory
*/
static fromDirectory(path: string, options: Options): Promise<string>;
/**
* Create a ZIP containing files matching the specified pattern at the specified path
*/
static fromPattern(path: string, pattern: string, options: Options): Promise<string>;
/**
* Returns the configured archiver
*/
private static getArchiver;
/**
* Returns the output path configured with specified options or defaults
*/
private static getOutputPath;
}
export { Zipster };
//# sourceMappingURL=Zipster.d.ts.map