1.0.1 • Published 7 years ago

zip-reader v1.0.1

Weekly downloads
2
License
ISC
Repository
-
Last release
7 years ago

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);

问题和反馈

  • zhixintang@tencent.com
  • admin@ninetang.com