istextorbinary
istextorbinary copied to clipboard
Make it compatible with plain Uint8Array
Instead of relying of Node polyfills on the browser, it'd be nice if we could use this library directly on instances of Uint8Array. I see we would need to work around of the lack of toString(<encoding>). Would you accept a patch to adapt that logic?