1.0.4 • Published 9 years ago

zip-mapper v1.0.4

Weekly downloads
3
License
MIT
Repository
github
Last release
9 years ago

zip-mapper Build Status Coverage Status

Unzip a .zip file and map the structure in an object

Usage

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){
  //(...)
});
1.0.4

9 years ago

1.0.2

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago