Unzip a .zip file and map the structure in an object
The ZipMapper mapper has 3 parameters, only 2 required. ZipMapper(filePath, [onMemory], cb);
- filePath (string): Relative or absolute path to the zip file.
- onMemory (bool): Define of the files content will be loaded in memory or not.
- cb (Function): Callback, receive 2 parameters. First err object and second the mapped zip.
var ZipMapper = require('zip-mapper');
var mapper = new ZipMapper(filePath, true, function(err, map){
//(...)
});