You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
also using base64 should best be avoided, it's better to just deal with TypedArrays / Blobs instead of increasing the payload/memory with 33% more data
The text was updated successfully, but these errors were encountered:
And there is also kind of already one out there that dose the same thing: hughsk/btoa-lite
This package exists because hughsk/btoa-lite#3 never ended up getting merged. hughsk/btoa-lite#3 replaced new Buffer (which throws a deprecation warning) with Buffer.from.
btoa exist everywhere now basically. it's global in nodejs since v16.
Somehow, the docs don't recommend using btoa.
also using base64 should best be avoided, it's better to just deal with TypedArrays / Blobs instead of increasing the payload/memory with 33% more data
Yes
Uhm, why did you create this?
I don't remember anymore. There might be some clues in hughsk/btoa-lite#3.
I do remember that at some point, we got the node-fetch org after planning to publish it there for a couple years, so I just went ahead with it.
So, in theory, I think this makes this package the only one to wrap the "correct" way of doing btoa. Do you wanna do anything with it?
btoa exist everywhere now basically. it's global in nodejs since v16.
https://nodejs.org/dist/latest/docs/api/globals.html#btoadata
v16 is LTS right now...
And there is also kind of already one out there that dose the same thing: https://github.com/hughsk/btoa-lite
also using base64 should best be avoided, it's better to just deal with TypedArrays / Blobs instead of increasing the payload/memory with 33% more data
The text was updated successfully, but these errors were encountered: