-
Notifications
You must be signed in to change notification settings - Fork 362
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
async.processor is writeable not readable #534
Comments
Which docs did you use (link)? And which specific version of the lib (we have an rc out for v6)? |
Thanks for the quick response, sorry for my ignorance haha. The docs: https://www.npmjs.com/package/json2csv I can go ahead and try that version if that would help possibly. |
use the That's how I managed to directly stream into a csv file inside an s3 bucket |
v6, which has moved to a new repo and broken down has rewritten the async api to be much simpler. Full docs here: https://juanjodiaz.github.io/json2csv/#/parsers/node-async-parser |
The docs mention that AsyncParser.processor is a readable stream, but when i utilize it it says that it is a writeable stream and therefore i am having trouble piping the stream to s3 using the upload function that requires a readable stream.
Can someone help me out?
node version is 12+
latest version of the package
there are no errors aor anything, just trying to figure out how to get a readable stream. i cannot pipe to the s3 using output that i know of since the s3.upload is not a readable stream, just takes a readable stream.
any help is super appreciated.
The text was updated successfully, but these errors were encountered: