UNPKG
jszip
Version:
latest (3.10.1)
3.10.1
3.10.0
3.9.1
3.9.0
3.8.0
3.7.1
3.7.0
3.6.0
3.6.0-0
3.5.0
3.4.0
3.3.0
3.2.2
3.2.1
3.2.0
3.1.5
3.1.4
3.1.3
3.1.2
3.1.1
3.1.0
3.0.0
2.7.0
2.6.1
2.6.0
2.5.0
2.4.0
2.3.0
2.2.2
2.2.1
2.2.0
2.1.1
2.1.0
2.0.0
0.2.1
0.2.0
0.1.1
0.1.0
Create, read and edit .zip files with Javascript http://stuartk.com/jszip
Stuk/jszip
jszip
/
test
/
node.js
16 lines
(13 loc)
•
338 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
var
fs =
require
(
"fs"
);
global
.
JSZip
=
require
(
"../lib/index"
);
global
.
JSZipTestUtils
= {
loadZipFile
:
function
(
name, success, error
) { fs.
readFile
(name,
"binary"
,
function
(
err, data
) {
if
(err) {
error
(err); }
else
{
success
(data); } }); } };