Skip to content

Instantly share code, notes, and snippets.

@myobie
Created July 30, 2021 10:10
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 myobie/3eb8b4a743682bec70026e496aa9d37f to your computer and use it in GitHub Desktop.
Save myobie/3eb8b4a743682bec70026e496aa9d37f to your computer and use it in GitHub Desktop.
Very simple deno script to test that deno works
console.log('Fetching...')
const res = await fetch('https://example.com')
const body = new Uint8Array(await res.arrayBuffer())
console.log('---')
await Deno.stdout.write(body)
console.log('---')
console.log('Done.')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment