It would be useful if this library had a transform stream available, for the following sort of use case:
file.pipe(gfs.createTransformStream(...)) # to write full size image to gridFs
.pipe(resizeMyImage())
.pipe(gfs.createTransformStream(...)) # to write thumb image to gridFs
I don't have a good enough understanding of streams yet, otherwise I would take a crack at a PR.
It would be useful if this library had a transform stream available, for the following sort of use case:
I don't have a good enough understanding of streams yet, otherwise I would take a crack at a PR.