Open vbakke opened 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.
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).
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.