Small Node Zipfile Library Fix


I'm working with a library that extracts cover images from epubs (just a small personal project.) using a node library.

Some context:

Epubs work like zip files, in fact, if you change the name from <name>.epub to <name>.zip you can open it just like an zip file, and take out all the photos, text, or whatever.

The library I'm working with is called epub-image-extractor and is a simple library. Here's the link

[login to view URL]

The problem:

This library uses the another library called yauzl which is a zip file manager and for some reason is firing the "end" event instead of the "entry" event. It's likely a very simple fix, and will likely just require looking through the docs for the Yauzl library, but I don't currently have time.

I've included some images to demonstrate

Points to note in the images:

- coverPath variable is correct (the path to the cover photo in the epub file)

- zipFile variable seems to contain the epub

- [login to view URL]() seems to be where the issue is

- underneath [login to view URL]() there are two event listeners (end and entry), and the wrong one is being called (the is what needs debugging), leading to the "Cover image not found" error being thrown

Here's the docs for yauzl and the epud library again

[login to view URL]

[login to view URL]

P.S. there's a good chance I'll be doing more projects with Node in the future


Skills: Node.js

See more: nodejs zip folder, yauzl unzip example, nodejs unzip, jszip blob, jszip(); // add files to zip, yauzl, jszip, adm-zip, small library management project done, fix small pictures, website image small fix, fix small image better quality, java fix decimal points, small flash fix, fix picture quality small pictures, drupal user points fix, fix small picture large picture quality, fix site small, small css fix, small photos fix

About the Employer:
( 4 reviews ) Clitheroe, United Kingdom

Project ID: #26856725

4 freelancers are bidding on average £19 for this job


What happened? Is this still open? I have came across many such instances with stream and event firing in past, I am debugging your project right now, do chat with me, no need to pay upfront just stay in touch Also ep More

£20 GBP in 1 day
(2 Reviews)

I have experience with yauzl. I would be able to fix this issue for you. I can work on it immediately. Looking forward to discuss

£20 GBP in 1 day
(0 Reviews)

Hi, client! I read your project very detailed description carefully and also checked the screenshots. Actually I have experienced yauzl library so I feel confident about your project. Let's have a chat and resolve it More

£20 GBP in 1 day
(0 Reviews)

Good day, I will gladly help you with your project. I am a experienced NodeJS/NestJS developer and think this should be an easy fix (as you mentioned). I can start immediately once the project is awarded to me. Greeti More

£15 GBP in 1 day
(0 Reviews)