Skip to content
Closed
Show file tree
Hide file tree
Changes from 7 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
*~
node_modules
sauce_connect.log
.c9revisions
14 changes: 8 additions & 6 deletions .jshintrc
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
{
"undef": true,
"globals": {
"Uint8Array": false,
"Buffer": false,
"ArrayBuffer": false,
"strict": true,
"sub": true,

"TextEncoder": false
}
"globals": {
"TextEncoder": false,
"TextDecoder": false
},
"browser": true,
"node": true
}
21 changes: 21 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# v2.0.0, 2013-10-12

- `JSZipBase64` has been renamed to `JSZip.base64`.
- The `data` attribute on the object returned by `zip.file(name)` has been removed. Use `asText()`, `asBinary()`, `asUint8Array()`, `asArrayBuffer()` or `asNodeBuffer()`.

- [Fix issue with Android browser](https://github.com/Stuk/jszip/pull/60)

- The compression/decompression methods now give their input type with the `compressInputType` and `uncompressInputType` attributes.
- Lazily decompress data when needed and [improve performance in general](https://github.com/Stuk/jszip/pull/56)
- [Add support for `Buffer` in Node.js](https://github.com/Stuk/jszip/pull/57).
- Package for CommonJS/npm.

### v1.0.1, 2013-03-04

- Fixed an issue when generating a compressed zip file with empty files or folders, see #33.
- With bad data (null or undefined), asText/asBinary/asUint8Array/asArrayBuffer methods now return an empty string, see #36.

# v1.0.0, 2013-02-14

- First release after a long period without version.

32 changes: 32 additions & 0 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,34 @@ module.exports = function(grunt) {
tags: tags
}
}
},
jshint: {
options: {
jshintrc: "./.jshintrc"
},
all: ['./lib/*.js']
},
browserify: {
all: {
files: {
'dist/jszip.js': ['lib/index.js'],
},
options: {
standalone: 'JSZip',
ignore:['./lib/nodeBuffer.js','./lib/nodeBufferReader']
}
}
},
uglify: {
options: {
report: 'gzip',
mangle: true
},
all: {
src: 'dist/jszip.js',
dest: 'dist/jszip.min.js'
}
}
});

// Loading dependencies
Expand All @@ -77,6 +104,11 @@ module.exports = function(grunt) {
// }
grunt.loadNpmTasks("grunt-saucelabs");
grunt.loadNpmTasks("grunt-contrib-connect");
grunt.loadNpmTasks('grunt-browserify');
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-contrib-uglify');

grunt.registerTask("test", ["connect", "saucelabs-qunit"]);
grunt.registerTask("build", ["browserify", "uglify"]);
grunt.registerTask("default", ["jshint", "build"]);
};
23 changes: 23 additions & 0 deletions bower.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"name": "jszip",
"version": "2.0.0",
"homepage": "http://stuartk.com/jszip",
"authors": [
"Stuart Knightley <stuart@stuartk.com>"
],
"description": "Create, read and edit .zip files with Javascript http://stuartk.com/jszip",
"main": "dist/jszip.js",
"keywords": [
"zip",
"deflate",
"inflate"
],
"license": "MIT or GPLv3",
"ignore": [
"**/.*",
"node_modules",
"bower_components",
"test",
"tests"
]
}
16 changes: 16 additions & 0 deletions component.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"name": "jszip",
"repo": "Stuk/jszip",
"description": "Create, read and edit .zip files with Javascript http://stuartk.com/jszip",
"version": "2.0.0",
"keywords": [
"zip",
"deflate",
"inflate"
],
"main": "dist/jszip.js",
"license": "MIT or GPLv3",
"scripts": [
"dist/jszip.js"
]
}
Loading