We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Two questions about "extracting as an async iterator"
https://github.com/mafintosh/tar-stream?tab=readme-ov-file#extracting-as-an-async-iterator
The extraction stream in addition to being a writable stream is also an async iterator
Is it an AsyncIterable or an AsyncIterator?
How are the bodies of the entries consumed?
Is the following correct? (I think this works for me.)
for await (const entry of extract) { if (entry.header.type === "file") { for await (const chunk of entry) { process(chunk); } } else { entry.resume(); } }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Two questions about "extracting as an async iterator"
https://github.com/mafintosh/tar-stream?tab=readme-ov-file#extracting-as-an-async-iterator
Is it an AsyncIterable or an AsyncIterator?
How are the bodies of the entries consumed?
Is the following correct? (I think this works for me.)
The text was updated successfully, but these errors were encountered: