arraybuffer-to-string
arraybuffer-to-string copied to clipboard
refactor: use native Node v11+ TextEncoder
Have you thought about refactoring this to use the native TextEncoder in Node since v11?
- https://nodejs.org/api/util.html#util_class_util_textencoder
- https://developer.mozilla.org/en-US/docs/Web/API/TextEncoder#See_also
Relates to https://github.com/dy/string-to-arraybuffer/issues/1.