vbakke / trytes

Converting between trytes and bytes
6 stars 1 forks source link

Make it work for browsers #7

Open vbakke opened 6 years ago

vbakke commented 6 years ago

I have not yet tried including this in a browser.

Buffer.from(...) must be replaced by TextDecoder(). Feel free to add other browser issues if you try that road.

Aim is that this must work in both NodeJS and browsers.

vbakke commented 6 years ago

I'll use browserify to bridge the gap to browsers.

Also, the browser TextEncoder() has deprecated support for encopdeing text as UTF-16 (or actually, anything but UTF-8).