javo / buckle

Pure JS unzip that preserves file attributes.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Buckle

Pure JS ZIP extractor, that preserves file attributes. Based on a modified version of DecompressZip.

var buckle = require('buckle');

buckle.open('/path/to/package.zip', '/destination/path', function(err, result) {
  console.log(err || result);
})

That's pretty much it. You can omit the destination path argument, which will unzip the files to the package's current path.

Credits

Written by Tomás Pollak.

Copyright

(c) 2014 Fork Ltd. MIT licensed.

About

Pure JS unzip that preserves file attributes.


Languages

Language:JavaScript 100.0%