zip-mapper

1.0.4 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i zip-mapper

Weekly Downloads

7

Version

1.0.4

License

MIT

Last publish

Collaborators

  • manrueda