Skip to content

Instantly share code, notes, and snippets.

@myobie
Created July 30, 2021 10:10
Embed
What would you like to do?
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