@@ -29,11 +29,11 @@ If you want to use the old API, you can do it
2929// JSR
3030import { tar } from " jsr:@deno-library/compress" ;
3131// or
32- // import { tar } from "jsr:@deno-library/compress@0.4.9 ";
32+ // import { tar } from "jsr:@deno-library/compress@0.5.0 ";
3333// or
34- // import { tar } from "https://deno.land/x/compress@v0.4.9 /mod.ts";
34+ // import { tar } from "https://deno.land/x/compress@v0.5.0 /mod.ts";
3535// or only import tar
36- // import { tar } from "https://deno.land/x/compress@v0.4.9 /tar/mod.ts";
36+ // import { tar } from "https://deno.land/x/compress@v0.5.0 /tar/mod.ts";
3737export interface compressInterface {
3838 excludeSrc? : boolean ; // does not contain the src directory
3939 debug? : boolean ; // list the files and folders
@@ -51,7 +51,7 @@ tar.uncompress(src, dest, options?: uncompressInterface): Promise<void>;
5151// JSR
5252import { tar } from " jsr:@deno-library/compress" ;
5353// or
54- // import { tar } from "https://deno.land/x/compress@v0.4.9 /mod.ts";
54+ // import { tar } from "https://deno.land/x/compress@v0.5.0 /mod.ts";
5555// compress folder
5656await tar .compress (" ./test" , " ./test.tar" );
5757// compress folder, exclude src directory
@@ -78,9 +78,9 @@ import {
7878 inflateRaw ,
7979} from " jsr:@deno-library/compress" ;
8080// or
81- // import { deflate, inflate, deflateRaw, inflateRaw } from "https://deno.land/x/compress@v0.4.9 /mod.ts";
81+ // import { deflate, inflate, deflateRaw, inflateRaw } from "https://deno.land/x/compress@v0.5.0 /mod.ts";
8282// or only import deflate, inflate, deflateRaw, inflateRaw
83- // import { deflate, inflate, deflateRaw, inflateRaw } from "https://deno.land/x/compress@v0.4.9 /zlib/mod.ts";
83+ // import { deflate, inflate, deflateRaw, inflateRaw } from "https://deno.land/x/compress@v0.5.0 /zlib/mod.ts";
8484const str = " hello world!" ;
8585const bytes = new TextEncoder ().encode (str );
8686// with zlib header
@@ -123,9 +123,9 @@ Useful for reading and writing large files.
123123``` ts
124124import { GzipStream } from " jsr:@deno-library/compress" ;
125125// or
126- // import { GzipStream } from "https://deno.land/x/compress@v0.4.9 /mod.ts";
126+ // import { GzipStream } from "https://deno.land/x/compress@v0.5.0 /mod.ts";
127127// or only import GzipStream
128- // import { GzipStream } from "https://deno.land/x/compress@v0.4.9 /gzip/mod.ts";
128+ // import { GzipStream } from "https://deno.land/x/compress@v0.5.0 /gzip/mod.ts";
129129const gzip = new GzipStream ();
130130gzip .on (" progress" , (progress : string ) => {
131131 console .log (progress ); // 0.00% => 100.00%
@@ -140,9 +140,9 @@ await gzip.uncompress("./big.mkv.gz", "./big.mkv");
140140``` ts
141141import { gunzipFile , gzipFile } from " jsr:@deno-library/compress" ;
142142// or
143- // import { gunzipFile, gzipFile } from "https://deno.land/x/compress@v0.4.9 /mod.ts";
143+ // import { gunzipFile, gzipFile } from "https://deno.land/x/compress@v0.5.0 /mod.ts";
144144// or only import gzipFile, gunzipFile
145- // import { gzipFile, gunzipFile } from "https://deno.land/x/compress@v0.4.9 /gzip/mod.ts";
145+ // import { gzipFile, gunzipFile } from "https://deno.land/x/compress@v0.5.0 /gzip/mod.ts";
146146await gzipFile (" ./deno.txt" , " ./deno.txt.gz" );
147147await gunzipFile (" ./deno.txt.gz" , " ./deno.txt" );
148148```
@@ -155,9 +155,9 @@ await gunzipFile("./deno.txt.gz", "./deno.txt");
155155``` ts
156156import { gunzip , gzip } from " jsr:@deno-library/compress" ;
157157// or
158- // import { gunzip, gzip } from "https://deno.land/x/compress@v0.4.9 /mod.ts";
158+ // import { gunzip, gzip } from "https://deno.land/x/compress@v0.5.0 /mod.ts";
159159// or only import gzip, gunzip
160- // import { gzip, gunzip } from "https://deno.land/x/compress@v0.4.9 /zlib/mod.ts";
160+ // import { gzip, gunzip } from "https://deno.land/x/compress@v0.5.0 /zlib/mod.ts";
161161// gzip
162162const bytes = new TextEncoder ().encode (" hello" );
163163const compressed = gzip (bytes );
@@ -177,9 +177,9 @@ If you want to use the old API, you can do it
177177``` ts
178178import { tgz } from " jsr:@deno-library/compress" ;
179179// or
180- // import { tgz } from "https://deno.land/x/compress@v0.4.9 /mod.ts";
180+ // import { tgz } from "https://deno.land/x/compress@v0.5.0 /mod.ts";
181181// or only import tgz
182- // import { tgz } from "https://deno.land/x/compress@v0.4.9 /tgz/mod.ts";
182+ // import { tgz } from "https://deno.land/x/compress@v0.5.0 /tgz/mod.ts";
183183export interface compressInterface {
184184 excludeSrc? : boolean ; // does not contain the src directory
185185 debug? : boolean ; // list the files and folders
@@ -196,7 +196,7 @@ tgz.uncompress(src, dest, options?: uncompressInterface): Promise<void>;
196196``` ts
197197import { tgz } from " jsr:@deno-library/compress" ;
198198// or
199- // import { tgz } from "https://deno.land/x/compress@v0.4.9 /mod.ts";
199+ // import { tgz } from "https://deno.land/x/compress@v0.5.0 /mod.ts";
200200// compress folder
201201await tgz .compress (" ./test" , " ./test.tar.gz" );
202202// compress folder, exclude src directory
@@ -216,9 +216,9 @@ await tgz.uncompress("./test.tar.gz", "./dest");
216216``` ts
217217import { zip } from " jsr:@deno-library/compress" ;
218218// or
219- // import { zip } from "https://deno.land/x/compress@v0.4.9 /mod.ts";
219+ // import { zip } from "https://deno.land/x/compress@v0.5.0 /mod.ts";
220220// or only import zip
221- // import { zip } from "https://deno.land/x/compress@v0.4.9 /zip/mod.ts";
221+ // import { zip } from "https://deno.land/x/compress@v0.5.0 /zip/mod.ts";
222222
223223export interface compressInterface {
224224 // Indicates whether to overwrite the existing archive file
0 commit comments