Skip to content

manrueda/zip-mapper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published