forked from maugenst/zip-a-folder
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Typescripted version of zip-a-folder
Bumped to 1.0.1 * Fixing dev dependencies (thanks Xotabu4) * Updated Jest dependencies to latest * Fixing eslint errors * Removed tslint dev reference
- Loading branch information
Showing
11 changed files
with
1,275 additions
and
1,068 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,12 @@ | ||
export declare enum COMPRESSION_LEVEL { | ||
uncompressed = 0, | ||
medium = 5, | ||
high = 9 | ||
} | ||
export declare class ZipAFolder { | ||
static zip(srcFolder: string, zipFilePath: string): Promise<void | Error>; | ||
static zipFolder(srcFolder: string, zipFilePath: string, callback: (error?: Error) => void): void; | ||
static tar(srcFolder: string, zipFilePath: string, compression?: COMPRESSION_LEVEL): Promise<void | Error>; | ||
static zip(srcFolder: string, zipFilePath: string, compression?: COMPRESSION_LEVEL): Promise<void | Error>; | ||
private static compress; | ||
} | ||
export declare const zip: typeof ZipAFolder.zip; | ||
export declare const tar: typeof ZipAFolder.tar; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.