Giter Club home page Giter Club logo

Comments (5)

callmehiphop avatar callmehiphop commented on July 16, 2024

@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.

stephenplusplus avatar stephenplusplus commented on July 16, 2024

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.

fiws avatar fiws commented on July 16, 2024

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.

stephenplusplus avatar stephenplusplus commented on July 16, 2024

I'll mark it the issue with "help wanted", so if anyone beats us to implementing it, great!

from nodejs-storage.

stephenplusplus avatar stephenplusplus commented on July 16, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.