#Node -> Browser friendly package?
7 messages · Page 1 of 1 (latest)
the right way would be to use APIs that are available both in the browser and in nodejs
I'm mainly talking about using ArrayBuffer instead of Buffer
for zlib, there is zlib-browserify which you need to install to do the mocks and pollyfills
no, wait, they switched to browserify-zlib
that's because it relies on Pako, a package to do compression, and not the native zlib module
I'd recommend switching entierly to pako, and using that, for the frontend as well as for the backend