Giter VIP home page Giter VIP logo

Comments (13)

marco-ippolito avatar marco-ippolito commented on June 10, 2024 1

like for fs and timers, ideally, you should be able to require zlib/promises.
However it has not been implemented yet and zlib doesnt have promise based apis

from node.

Mrgaton avatar Mrgaton commented on June 10, 2024 1

Could you do it for me

from node.

RedYetiDev avatar RedYetiDev commented on June 10, 2024 1

I'm not an expert on ZLIB (or even a novice), but someone will likely implement it eventually. However, it will take time, so I wouldn't expect it anytime soon.

from node.

RedYetiDev avatar RedYetiDev commented on June 10, 2024

Just curious, but what's wrong with the util.promisify way?

from node.

Mrgaton avatar Mrgaton commented on June 10, 2024

i just ugly having to declare each function separatly and having to import another lib to the code

from node.

Mrgaton avatar Mrgaton commented on June 10, 2024

im referring to brotli but it would also be good for gzip, deflate, etc.

from node.

Mrgaton avatar Mrgaton commented on June 10, 2024

Yes but why are they not inside zlib? Its just confusing

from node.

Mrgaton avatar Mrgaton commented on June 10, 2024

image
also i get an error

from node.

marco-ippolito avatar marco-ippolito commented on June 10, 2024

image
also i get an error

For other api like fs we ship the promise based version in fs/promises.
In case of zlib this has not been done, if someone is interested in implementing it I wouldnt object

from node.

RedYetiDev avatar RedYetiDev commented on June 10, 2024

Should I add "help wanted" for someone to take on the issue?

(ping) @nodejs/zlib in case they are already on the case

from node.

Mrgaton avatar Mrgaton commented on June 10, 2024

so this feature will actualy will be shiped to node?

from node.

Mrgaton avatar Mrgaton commented on June 10, 2024

Member

but why dont just make their async function inside zlib 🙄

from node.

RedYetiDev avatar RedYetiDev commented on June 10, 2024

so this feature will actualy will be shiped to node?

It's possible, but someone would have to implement it, so that takes time and energy.

from node.

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.