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?
Is the browser environment not a supported target?
Bufferis a NodeJS only concept. In browser land, theBuffer.fromin most spots would benew TextEncoder. Base64 decode of binary data would be handled by something like base64-js. Maybedetect-nodecould be to conditionally import the dependencies appropriately and to select which Base64 decoding to use?