Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suggestion: Add clarification regarding output directory, use "./" for same folder #104

Open
Taz-1999 opened this issue Jan 26, 2023 · 0 comments

Comments

@Taz-1999
Copy link

Taz-1999 commented Jan 26, 2023

My problem was that unpacking zipfile 6010.zip using 6010 as output did not work. I got 6010/6010/ and in the latter was the files. Because the archive was a zipped folder named 6010.

Empty string as output, or emitting output completely does not accomplish what I want. Neither finding out the parent directory and using that for output.

Suggestion for this simple clarification in the ReadMe under Output directory.

Add

Use "./" as output to unpack in the same directory.

Example:

decompress('unicorn.zip', './').then(files => {
console.log('done!');
});

Thanks for a great package.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant