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
Is the browser environment not a supported target? Buffer is a NodeJS only concept. In browser land, the Buffer.from in most spots would be new TextEncoder. Base64 decode of binary data would be handled by something like base64-js. Maybe detect-node could be to conditionally import the dependencies appropriately and to select which Base64 decoding to use?
The text was updated successfully, but these errors were encountered:
We haven't made much of an effort to support the browser environment. However, the module has been known to work in eg. webpack builds (#5) where these things are polyfilled.
Is the browser environment not a supported target?
Buffer
is a NodeJS only concept. In browser land, theBuffer.from
in most spots would benew TextEncoder
. Base64 decode of binary data would be handled by something like base64-js. Maybedetect-node
could be to conditionally import the dependencies appropriately and to select which Base64 decoding to use?The text was updated successfully, but these errors were encountered: