1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-29 10:39:10 -05:00
denoland-deno/std/examples/curl.ts

5 lines
173 B
TypeScript
Raw Normal View History

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