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

Switch to stream.Writable #207

Merged
merged 1 commit into from
Jan 20, 2021
Merged

Switch to stream.Writable #207

merged 1 commit into from
Jan 20, 2021

Conversation

gionkunz
Copy link
Contributor

Switched from fs.WriteStream to stream.Writable in order to provide more streaming flexibility.

The current version expects fs.WriteStream which limits writing to files. Since fs.WriteStream is based on stream.Writable, and there's no specific functionality needed from fs.WriteStream, it's beneficial to switch to stream.Writable. This way, you can use any writable stream to write the generated PDF.

Cheers
Gion

@schoero
Copy link
Owner

schoero commented Jan 20, 2021

Sounds reasonable. Thank you for your contribution. I will release a new version this evening.

@schoero schoero merged commit 3a4028d into schoero:master Jan 20, 2021
@gionkunz
Copy link
Contributor Author

Great, thanks!

@schoero
Copy link
Owner

schoero commented Jan 20, 2021

SwissQRBill v2.2.0 containing your changes is now published on npm. Thank you!

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

Successfully merging this pull request may close these issues.

2 participants