0
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-10-31 09:14:20 -04:00
denoland-deno/std/examples/curl.ts
2020-01-15 08:05:22 -06:00

4 lines
173 B
TypeScript

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