1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-27 16:10:57 -05: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);