zip-reader
v1.0.1
Published
zip reader
Downloads
1
Maintainers
Readme
This module is a utility to read and check all directories and files in a zip, it can traverse the zip inner structure recursively, read out internal directories, zips, images, fonts, and other files. Actually, It will calculate all files's md5, file size, created time, as images, it can read out the width/height
Read an image
let imgPath = path.join(__dirname, 'files', '590x460g.gif');
let XImage = require('./XImage');
let imgInfo = new XImage(imgPath).output();
console.log(imgInfo);
Read a zip
let XZip = require('./XZip');
let zipPath = path.join(__dirname, 'files', 'a.zip');
let zipInfo = new XZip(zipPath).output();
console.table(zipInfo.zipInfo);