Comparing version
{ | ||
"name": "uzip", | ||
"version": "0.20191011.0", | ||
"version": "0.20191012.0", | ||
"files": [ "LICENSE", "README.md", "UZIP.js", "package.json" ], | ||
@@ -5,0 +5,0 @@ "main": "./UZIP", |
@@ -10,2 +10,18 @@ # UZIP.js | ||
## Installation | ||
**Web**: Add the `UZIP.js` script to your webpage: | ||
```html | ||
<script src="UZIP.js"></script> | ||
``` | ||
**NodeJS**: Install the [`uzip` package](https://www.npmjs.com/package/uzip): | ||
``` | ||
npm install uzip | ||
``` | ||
## Interface | ||
#### `UZIP.parse(buff)` | ||
@@ -21,4 +37,6 @@ * `buff`: ArrayBuffer of the ZIP file | ||
```js | ||
var obj = { "file.txt":new Uint8Array([72,69,76,76,79]), "dir/photo.jpg":..., "dir/pic.png":... }; | ||
var zip = UZIP.encode(obj); | ||
``` | ||
@@ -25,0 +43,0 @@ ## Deflate compression |
33966
0.72%71
33.96%