@@ -22,7 +22,7 @@ If you want to read and write files, you need the following [permissions](https:
22
22
23
23
## ` tar `
24
24
25
- v0.5.4
25
+ v0.5.5
26
26
Use ` @std/tar ` instead of ` @std/archive ` due to deprecation
27
27
If you want to use the old API, you can do it
28
28
@@ -34,11 +34,11 @@ If you want to use the old API, you can do it
34
34
// JSR
35
35
import { tar } from " jsr:@deno-library/compress" ;
36
36
// or
37
- // import { tar } from "jsr:@deno-library/[email protected] .4 ";
37
+ // import { tar } from "jsr:@deno-library/[email protected] .5 ";
38
38
// or
39
- // import { tar } from "https://deno.land/x/[email protected] .4 /mod.ts";
39
+ // import { tar } from "https://deno.land/x/[email protected] .5 /mod.ts";
40
40
// or only import tar
41
- // import { tar } from "https://deno.land/x/[email protected] .4 /tar/mod.ts";
41
+ // import { tar } from "https://deno.land/x/[email protected] .5 /tar/mod.ts";
42
42
export interface compressInterface {
43
43
excludeSrc? : boolean ; // does not contain the src directory
44
44
debug? : boolean ; // list the files and folders
@@ -56,7 +56,7 @@ tar.uncompress(src, dest, options?: uncompressInterface): Promise<void>;
56
56
// JSR
57
57
import { tar } from " jsr:@deno-library/compress" ;
58
58
// or
59
- // import { tar } from "https://deno.land/x/[email protected] .4 /mod.ts";
59
+ // import { tar } from "https://deno.land/x/[email protected] .5 /mod.ts";
60
60
// compress folder
61
61
await tar .compress (" ./test" , " ./test.tar" );
62
62
// compress folder, exclude src directory
@@ -83,9 +83,9 @@ import {
83
83
inflateRaw ,
84
84
} from " jsr:@deno-library/compress" ;
85
85
// or
86
- // import { deflate, inflate, deflateRaw, inflateRaw } from "https://deno.land/x/[email protected] .4 /mod.ts";
86
+ // import { deflate, inflate, deflateRaw, inflateRaw } from "https://deno.land/x/[email protected] .5 /mod.ts";
87
87
// or only import deflate, inflate, deflateRaw, inflateRaw
88
- // import { deflate, inflate, deflateRaw, inflateRaw } from "https://deno.land/x/[email protected] .4 /zlib/mod.ts";
88
+ // import { deflate, inflate, deflateRaw, inflateRaw } from "https://deno.land/x/[email protected] .5 /zlib/mod.ts";
89
89
const str = " hello world!" ;
90
90
const bytes = new TextEncoder ().encode (str );
91
91
// with zlib header
@@ -128,9 +128,9 @@ Useful for reading and writing large files.
128
128
``` ts
129
129
import { GzipStream } from " jsr:@deno-library/compress" ;
130
130
// or
131
- // import { GzipStream } from "https://deno.land/x/[email protected] .4 /mod.ts";
131
+ // import { GzipStream } from "https://deno.land/x/[email protected] .5 /mod.ts";
132
132
// or only import GzipStream
133
- // import { GzipStream } from "https://deno.land/x/[email protected] .4 /gzip/mod.ts";
133
+ // import { GzipStream } from "https://deno.land/x/[email protected] .5 /gzip/mod.ts";
134
134
const gzip = new GzipStream ();
135
135
gzip .on (" progress" , (progress : string ) => {
136
136
console .log (progress ); // 0.00% => 100.00%
@@ -145,9 +145,9 @@ await gzip.uncompress("./big.mkv.gz", "./big.mkv");
145
145
``` ts
146
146
import { gunzipFile , gzipFile } from " jsr:@deno-library/compress" ;
147
147
// or
148
- // import { gunzipFile, gzipFile } from "https://deno.land/x/[email protected] .4 /mod.ts";
148
+ // import { gunzipFile, gzipFile } from "https://deno.land/x/[email protected] .5 /mod.ts";
149
149
// or only import gzipFile, gunzipFile
150
- // import { gzipFile, gunzipFile } from "https://deno.land/x/[email protected] .4 /gzip/mod.ts";
150
+ // import { gzipFile, gunzipFile } from "https://deno.land/x/[email protected] .5 /gzip/mod.ts";
151
151
await gzipFile (" ./deno.txt" , " ./deno.txt.gz" );
152
152
await gunzipFile (" ./deno.txt.gz" , " ./deno.txt" );
153
153
```
@@ -160,9 +160,9 @@ await gunzipFile("./deno.txt.gz", "./deno.txt");
160
160
``` ts
161
161
import { gunzip , gzip } from " jsr:@deno-library/compress" ;
162
162
// or
163
- // import { gunzip, gzip } from "https://deno.land/x/[email protected] .4 /mod.ts";
163
+ // import { gunzip, gzip } from "https://deno.land/x/[email protected] .5 /mod.ts";
164
164
// or only import gzip, gunzip
165
- // import { gzip, gunzip } from "https://deno.land/x/[email protected] .4 /zlib/mod.ts";
165
+ // import { gzip, gunzip } from "https://deno.land/x/[email protected] .5 /zlib/mod.ts";
166
166
// gzip
167
167
const bytes = new TextEncoder ().encode (" hello" );
168
168
const compressed = gzip (bytes );
@@ -172,7 +172,7 @@ const decompressed = gunzip(compressed);
172
172
173
173
## ` tgz `
174
174
175
- v0.5.4
175
+ v0.5.5
176
176
Use ` @std/tar ` instead of ` @std/archive ` due to deprecation
177
177
If you want to use the old API, you can do it
178
178
@@ -183,9 +183,9 @@ If you want to use the old API, you can do it
183
183
``` ts
184
184
import { tgz } from " jsr:@deno-library/compress" ;
185
185
// or
186
- // import { tgz } from "https://deno.land/x/[email protected] .4 /mod.ts";
186
+ // import { tgz } from "https://deno.land/x/[email protected] .5 /mod.ts";
187
187
// or only import tgz
188
- // import { tgz } from "https://deno.land/x/[email protected] .4 /tgz/mod.ts";
188
+ // import { tgz } from "https://deno.land/x/[email protected] .5 /tgz/mod.ts";
189
189
export interface compressInterface {
190
190
excludeSrc? : boolean ; // does not contain the src directory
191
191
debug? : boolean ; // list the files and folders
@@ -202,7 +202,7 @@ tgz.uncompress(src, dest, options?: uncompressInterface): Promise<void>;
202
202
``` ts
203
203
import { tgz } from " jsr:@deno-library/compress" ;
204
204
// or
205
- // import { tgz } from "https://deno.land/x/[email protected] .4 /mod.ts";
205
+ // import { tgz } from "https://deno.land/x/[email protected] .5 /mod.ts";
206
206
// compress folder
207
207
await tgz .compress (" ./test" , " ./test.tar.gz" );
208
208
// compress folder, exclude src directory
@@ -220,9 +220,9 @@ await tgz.uncompress("./test.tar.gz", "./dest");
220
220
``` ts
221
221
import { zip } from " jsr:@deno-library/compress" ;
222
222
// or
223
- // import { zip } from "https://deno.land/x/[email protected] .4 /mod.ts";
223
+ // import { zip } from "https://deno.land/x/[email protected] .5 /mod.ts";
224
224
// or only import zip
225
- // import { zip } from "https://deno.land/x/[email protected] .4 /zip/mod.ts";
225
+ // import { zip } from "https://deno.land/x/[email protected] .5 /zip/mod.ts";
226
226
227
227
export interface compressInterface {
228
228
excludeSrc? : boolean ; // does not contain the src directory
@@ -240,7 +240,7 @@ zip.uncompress(src, dest, options?: uncompressInterface): Promise<void>;
240
240
``` ts
241
241
import { zip } from " jsr:@deno-library/compress" ;
242
242
// or
243
- // import { zip } from "https://deno.land/x/[email protected] .4 /mod.ts";
243
+ // import { zip } from "https://deno.land/x/[email protected] .5 /mod.ts";
244
244
// compress folder
245
245
await zip .compress (" ./test" , " ./test.tar.gz" );
246
246
// compress folder, exclude src directory
0 commit comments