Comments (5)
@fiws have you thought about using something like stream-to-promise? I think we're of the opinion that the streaming and non-streaming APIs shouldn't connect in that way.
from nodejs-storage.
I would agree that stream-to-promise
seems like the right way to go. I would be convinced otherwise if in the average app, we're the only API not accepting streams as an argument. That doesn't match my experience so far, which is why I'm slanted towards letting the module ecosystem solve this-- since it's probably not just us, a user would need a module like stream-to-promise
for use with those other APIs.
However, I'm contradicting myself by suggesting stream-to-promise
. If a lot of users are finding that useful, then it stands to reason it would be best to give users what they want.
What do you think @fiws? Obviously, you asked for the feature, but have you been able to make this work without the suggested change in a way that's not too cumbersome? Or do you feel even more strongly we should support this as time passed?
Considering the above, I would be okay with a PR for this, although I don't consider it urgent. Its value might increase in time.
from nodejs-storage.
Thanks for the response.
stream-to-promise
is better than the awkward wrapper I have build. Thanks for suggesting that. It's good enough for my use case for now. :)
I would really like to see node figure out their promise/callback/event/stream mess. It feels like we're slowly moving towards a more promise based node core starting with util.promisify
.
You can close this issue if it bothers you. I would still like the feature though.
from nodejs-storage.
I'll mark it the issue with "help wanted", so if anyone beats us to implementing it, great!
from nodejs-storage.
For now, I think it's best to let the API stand, as-is. If you want to PR it, it should be a non-harmful change, although I don't think there is much demand from the community at this time. We can always re-open if we hear more requests for this.
from nodejs-storage.
Related Issues (20)
- how to access storage with impersonated token? HOT 3
- what is the page limit of getFiles with autoPaginate=false HOT 2
- combining gzipped files
- Support Storage Control quickstart HOT 8
- Update mime dependency to ^4.0.0 HOT 10
- deps!: Remove form-data dependency in favor of Node 18 implementation
- FileMetadata type missing null on metadata for delete HOT 1
- The build failed HOT 2
- GetServiceAccountOptions missing projectIdentifier field
- Unable to generate signedUrl when using WIF under GKE HOT 11
- File.from picks up incorrect bucket name from passed URL HOT 3
- FR: Support HNS enablement in bucket metadata
- CreateBucketRequest type is misaligned with JSON API
- storage HMAC keys: should get metadata for an HMAC key failed HOT 2
- storage HMAC keys: should make the key INACTIVE failed HOT 2
- tests: move HMAC system tests to use emulator
- storage bucket hierarchical namespace: should create a bucket without hierarchical namespace enabled (explicit) failed HOT 1
- Missing interface's property HOT 4
- storage HMAC keys: should delete the key failed
- Signed URL prefix HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nodejs-storage.