Skip to content

Instantly share code, notes, and snippets.

@zored
Last active September 1, 2020 12:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zored/be7481c7b450685f45ec812c14bbd87c to your computer and use it in GitHub Desktop.
Save zored/be7481c7b450685f45ec812c14bbd87c to your computer and use it in GitHub Desktop.
Deno 16k output limit
await Deno.stdout.write(new TextEncoder().encode('v'.repeat(20000)))
deno run \
https://gist.githubusercontent.com/zored/be7481c7b450685f45ec812c14bbd87c/raw/71e74bd6cd9f01a6ca17f73a1b5afe772e1f692b/sample.ts \
> v.txt
wc -c v.txt
# expected: 20000
# actual: 16384
rm v.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment