zip-reader

    1.0.1 • Public • Published

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

    问题和反馈

    Install

    npm i zip-reader

    DownloadsWeekly Downloads

    3

    Version

    1.0.1

    License

    ISC

    Unpacked Size

    1.62 MB

    Total Files

    23

    Last publish

    Collaborators

    • zhixintang