Hacker News new | ask | show | jobs
by Keithamus 1753 days ago
Deno uses uint8array (pretty much Nodes Buffers (Node Buffers subclass UInt8Array these days)) for almost all methods. For example Deno comes with `Deno.readFile` which returns a Promise<UInt8Array>, but they include the special case Deno.readTextFile because of how common it is to convert the contents to a string.
1 comments

Ah of course, that seems obvious in retrospect. Thanks for clarifying it for me!