Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
This repository was archived by the owner on Aug 27, 2020. It is now read-only.

daiscog/unzipper-issue

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

unzipper await issue

Install dependencies with npm install then run with node ./index.js.

What it does

index.js creates a zip file at ./tmp/test.zip that contains the two text files from the ./zip-contents directory.

Then it uses unzipper to iterate through this zip and compares the files in it to the originals in the ./zip-contents directory.

The issue

When using await fs.promises.readFile to read the original files during the for await (const entry of zip) loop, the zip stream stops emitting entries, so we only ever see the first entry in the zip.

Changing to fs.readFileSync to read the original file fixes the issue.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
Morty Proxy This is a proxified and sanitized view of the page, visit original site.