UNPKG

kaven-utils

Version:

Utils for Node.js.

34 lines (33 loc) 1.35 kB
/******************************************************************** * @author: Kaven * @email: kaven@wuwenkai.com * @website: http://blog.kaven.xyz * @file: [Kaven-Utils] /src/KavenUtility.Archive.ts * @create: 2020-07-29 13:57:23.481 * @modify: 2024-11-01 14:38:14.464 * @version: 5.4.5 * @times: 54 * @lines: 104 * @copyright: Copyright © 2020-2024 Kaven. All Rights Reserved. * @description: [description] * @license: [license] ********************************************************************/ import { IArchiveOptions } from "./base/Interfaces.js"; /** * This function calls the 7z binary, it should be available in your PATH. * @since 5.3.0 * @version 2023-12-11 * @example * Create7zArchive("./dist/", "dist.7z") * Create7zArchive("./dist/*", "dist.7z") */ export declare function Create7zArchive(input: string | string[], outputFile: string, options?: IArchiveOptions): Promise<string>; /** * This function calls the 7z binary, it should be available in your PATH. * @since 5.3.0 * @version 2023-12-11 * @example * CreateZipArchive("./dist/", "dist.zip") * CreateZipArchive("./dist/*", "dist.zip") */ export declare function CreateZipArchive(inputFiles: string | string[], outputFile: string, options?: IArchiveOptions): Promise<string>;