@@ -20,7 +20,7 @@ If you want to read and write files, you need the following [permissions](https:
20
20
21
21
### Definition
22
22
23
- v0.5.1
23
+ v0.5.2
24
24
Use ` @std/tar ` instead of ` @std/archive ` due to deprecation
25
25
If you want to use the old API, you can do it
26
26
> import { tar } from "jsr:@deno-library/compress /tar_archive/mod.ts";
@@ -29,11 +29,11 @@ If you want to use the old API, you can do it
29
29
// JSR
30
30
import { tar } from " jsr:@deno-library/compress" ;
31
31
// or
32
- // import { tar } from "jsr:@deno-library/[email protected] .1 ";
32
+ // import { tar } from "jsr:@deno-library/[email protected] .2 ";
33
33
// or
34
- // import { tar } from "https://deno.land/x/[email protected] .1 /mod.ts";
34
+ // import { tar } from "https://deno.land/x/[email protected] .2 /mod.ts";
35
35
// or only import tar
36
- // import { tar } from "https://deno.land/x/[email protected] .1 /tar/mod.ts";
36
+ // import { tar } from "https://deno.land/x/[email protected] .2 /tar/mod.ts";
37
37
export interface compressInterface {
38
38
excludeSrc? : boolean ; // does not contain the src directory
39
39
debug? : boolean ; // list the files and folders
@@ -51,7 +51,7 @@ tar.uncompress(src, dest, options?: uncompressInterface): Promise<void>;
51
51
// JSR
52
52
import { tar } from " jsr:@deno-library/compress" ;
53
53
// or
54
- // import { tar } from "https://deno.land/x/[email protected] .1 /mod.ts";
54
+ // import { tar } from "https://deno.land/x/[email protected] .2 /mod.ts";
55
55
// compress folder
56
56
await tar .compress (" ./test" , " ./test.tar" );
57
57
// compress folder, exclude src directory
@@ -78,9 +78,9 @@ import {
78
78
inflateRaw ,
79
79
} from " jsr:@deno-library/compress" ;
80
80
// or
81
- // import { deflate, inflate, deflateRaw, inflateRaw } from "https://deno.land/x/[email protected] .1 /mod.ts";
81
+ // import { deflate, inflate, deflateRaw, inflateRaw } from "https://deno.land/x/[email protected] .2 /mod.ts";
82
82
// or only import deflate, inflate, deflateRaw, inflateRaw
83
- // import { deflate, inflate, deflateRaw, inflateRaw } from "https://deno.land/x/[email protected] .1 /zlib/mod.ts";
83
+ // import { deflate, inflate, deflateRaw, inflateRaw } from "https://deno.land/x/[email protected] .2 /zlib/mod.ts";
84
84
const str = " hello world!" ;
85
85
const bytes = new TextEncoder ().encode (str );
86
86
// with zlib header
@@ -123,9 +123,9 @@ Useful for reading and writing large files.
123
123
``` ts
124
124
import { GzipStream } from " jsr:@deno-library/compress" ;
125
125
// or
126
- // import { GzipStream } from "https://deno.land/x/[email protected] .1 /mod.ts";
126
+ // import { GzipStream } from "https://deno.land/x/[email protected] .2 /mod.ts";
127
127
// or only import GzipStream
128
- // import { GzipStream } from "https://deno.land/x/[email protected] .1 /gzip/mod.ts";
128
+ // import { GzipStream } from "https://deno.land/x/[email protected] .2 /gzip/mod.ts";
129
129
const gzip = new GzipStream ();
130
130
gzip .on (" progress" , (progress : string ) => {
131
131
console .log (progress ); // 0.00% => 100.00%
@@ -140,9 +140,9 @@ await gzip.uncompress("./big.mkv.gz", "./big.mkv");
140
140
``` ts
141
141
import { gunzipFile , gzipFile } from " jsr:@deno-library/compress" ;
142
142
// or
143
- // import { gunzipFile, gzipFile } from "https://deno.land/x/[email protected] .1 /mod.ts";
143
+ // import { gunzipFile, gzipFile } from "https://deno.land/x/[email protected] .2 /mod.ts";
144
144
// or only import gzipFile, gunzipFile
145
- // import { gzipFile, gunzipFile } from "https://deno.land/x/[email protected] .1 /gzip/mod.ts";
145
+ // import { gzipFile, gunzipFile } from "https://deno.land/x/[email protected] .2 /gzip/mod.ts";
146
146
await gzipFile (" ./deno.txt" , " ./deno.txt.gz" );
147
147
await gunzipFile (" ./deno.txt.gz" , " ./deno.txt" );
148
148
```
@@ -155,9 +155,9 @@ await gunzipFile("./deno.txt.gz", "./deno.txt");
155
155
``` ts
156
156
import { gunzip , gzip } from " jsr:@deno-library/compress" ;
157
157
// or
158
- // import { gunzip, gzip } from "https://deno.land/x/[email protected] .1 /mod.ts";
158
+ // import { gunzip, gzip } from "https://deno.land/x/[email protected] .2 /mod.ts";
159
159
// or only import gzip, gunzip
160
- // import { gzip, gunzip } from "https://deno.land/x/[email protected] .1 /zlib/mod.ts";
160
+ // import { gzip, gunzip } from "https://deno.land/x/[email protected] .2 /zlib/mod.ts";
161
161
// gzip
162
162
const bytes = new TextEncoder ().encode (" hello" );
163
163
const compressed = gzip (bytes );
@@ -167,7 +167,7 @@ const decompressed = gunzip(compressed);
167
167
168
168
## ` tgz `
169
169
170
- v0.5.1
170
+ v0.5.2
171
171
Use ` @std/tar ` instead of ` @std/archive ` due to deprecation
172
172
If you want to use the old API, you can do it
173
173
> import { tgz } from "jsr:@deno-library/compress /tgz_archive/mod.ts";
@@ -177,9 +177,9 @@ If you want to use the old API, you can do it
177
177
``` ts
178
178
import { tgz } from " jsr:@deno-library/compress" ;
179
179
// or
180
- // import { tgz } from "https://deno.land/x/[email protected] .1 /mod.ts";
180
+ // import { tgz } from "https://deno.land/x/[email protected] .2 /mod.ts";
181
181
// or only import tgz
182
- // import { tgz } from "https://deno.land/x/[email protected] .1 /tgz/mod.ts";
182
+ // import { tgz } from "https://deno.land/x/[email protected] .2 /tgz/mod.ts";
183
183
export interface compressInterface {
184
184
excludeSrc? : boolean ; // does not contain the src directory
185
185
debug? : boolean ; // list the files and folders
@@ -196,7 +196,7 @@ tgz.uncompress(src, dest, options?: uncompressInterface): Promise<void>;
196
196
``` ts
197
197
import { tgz } from " jsr:@deno-library/compress" ;
198
198
// or
199
- // import { tgz } from "https://deno.land/x/[email protected] .1 /mod.ts";
199
+ // import { tgz } from "https://deno.land/x/[email protected] .2 /mod.ts";
200
200
// compress folder
201
201
await tgz .compress (" ./test" , " ./test.tar.gz" );
202
202
// compress folder, exclude src directory
@@ -214,9 +214,9 @@ await tgz.uncompress("./test.tar.gz", "./dest");
214
214
``` ts
215
215
import { zip } from " jsr:@deno-library/compress" ;
216
216
// or
217
- // import { zip } from "https://deno.land/x/[email protected] .1 /mod.ts";
217
+ // import { zip } from "https://deno.land/x/[email protected] .2 /mod.ts";
218
218
// or only import zip
219
- // import { zip } from "https://deno.land/x/[email protected] .1 /zip/mod.ts";
219
+ // import { zip } from "https://deno.land/x/[email protected] .2 /zip/mod.ts";
220
220
221
221
export interface compressInterface {
222
222
excludeSrc? : boolean ; // does not contain the src directory
@@ -234,7 +234,7 @@ zip.uncompress(src, dest, options?: uncompressInterface): Promise<void>;
234
234
``` ts
235
235
import { zip } from " jsr:@deno-library/compress" ;
236
236
// or
237
- // import { zip } from "https://deno.land/x/[email protected] .1 /mod.ts";
237
+ // import { zip } from "https://deno.land/x/[email protected] .2 /mod.ts";
238
238
// compress folder
239
239
await zip .compress (" ./test" , " ./test.tar.gz" );
240
240
// compress folder, exclude src directory
0 commit comments