You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This package includes objects for unarchiving binary data in popular archive formats (zip, rar, tar) providing unzip, unrar and untar capabilities via JavaScript in the browser. A prototype version of a compressor that creates Zip files is also present. The decompression/compression actually happens inside a Web Worker, when the runtime supports it (browsers, deno).
54
+
This package includes objects for unarchiving binary data in popular archive formats (zip, rar, tar).
// e.currentFilename is the file currently being unarchived/scanned.
65
-
// e.totalCompressedBytesRead has how many bytes have been unzipped so far
66
-
}
67
-
68
-
functionreceiveOneFile(e) {
69
-
// e.unarchivedFile.filename: string
70
-
// e.unarchivedFile.fileData: Uint8Array
71
-
}
72
-
73
-
functiondisplayZipContents() {
74
-
// Now sort your received files and show them or whatever...
75
-
}
76
-
```
77
-
78
-
The unarchivers also support progressively decoding while streaming the file, if you are receiving the zipped file from a slow place (a Cloud API, for instance). For example:
This package includes code for dealing with binary images. It includes a module for converting WebP images into alternative raster graphics formats (PNG/JPG).
111
+
This package includes code for dealing with binary images. It includes a module for converting WebP
112
+
images into alternative raster graphics formats (PNG/JPG).
@@ -199,8 +136,13 @@ const flagbits = bstream.peekBits(6); // look ahead at next 6 bits, but do not a
199
136
200
137
## Reference
201
138
202
-
*[UnRar](http://codedread.github.io/bitjs/docs/unrar.html): A work-in-progress description of the RAR file format.
139
+
*[UnRar](http://codedread.github.io/bitjs/docs/unrar.html): A work-in-progress description of the
140
+
RAR file format.
203
141
204
142
## History
205
143
206
-
This project grew out of another project of mine, [kthoom](https://github.com/codedread/kthoom) (a comic book reader implemented in the browser). This repository was automatically exported from [my original repository on GoogleCode](https://code.google.com/p/bitjs) and has undergone considerable changes and improvements since then, including adding streaming support, starter RarVM support, tests, many bug fixes, and updating the code to ES6.
144
+
This project grew out of another project of mine, [kthoom](https://github.com/codedread/kthoom) (a
145
+
comic book reader implemented in the browser). This repository was automatically exported from
146
+
[my original repository on GoogleCode](https://code.google.com/p/bitjs) and has undergone
147
+
considerable changes and improvements since then, including adding streaming support, starter RarVM
148
+
support, tests, many bug fixes, and updating the code to modern JavaScript and supported features.
0 commit comments