Skip to content

Commit

Permalink
Typescripted version of zip-a-folder
Browse files Browse the repository at this point in the history
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
maugenst committed Apr 6, 2021
1 parent 754b91d commit 05ba1bb
Show file tree
Hide file tree
Showing 11 changed files with 1,275 additions and 1,068 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,3 +76,4 @@ Tests can be found in `/test` and run by jest. To run the tests call ``npm test`
* Thanks to YOONBYEONGIN
* Thanks to Wunschik
* Thanks to ratbeard
* Thanks to Xotabu4
12 changes: 10 additions & 2 deletions dist/lib/ZipAFolder.d.ts
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;
77 changes: 48 additions & 29 deletions dist/lib/ZipAFolder.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/lib/ZipAFolder.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

111 changes: 86 additions & 25 deletions dist/test/tests-ZipAFolder.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 05ba1bb

Please sign in to comment.