Open Mrgaton opened 4 weeks ago
Just curious, but what's wrong with the util.promisify
way?
i just ugly having to declare each function separatly and having to import another lib to the code
im referring to brotli but it would also be good for gzip, deflate, etc.
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
Yes but why are they not inside zlib? Its just confusing
also i get an error
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
Should I add "help wanted" for someone to take on the issue?
(ping) @nodejs/zlib in case they are already on the case
so this feature will actualy will be shiped to node?
Member
but why dont just make their async function inside zlib 🙄
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.
Could you do it for me
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.
What is the problem this feature will solve?
I dont want to use util promisfy for using brotli as async
What is the feature you are proposing to solve the problem?
zlib.brotliCompressAsync
What alternatives have you considered?
No response