0
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-10-30 09:08:00 -04:00
denoland-deno/std/examples/curl.ts

4 lines
173 B
TypeScript

// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license.
const url_ = Deno.args[1];
const res = await fetch(url_);
await Deno.copy(Deno.stdout, res.body);