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

5 lines
173 B
TypeScript
Raw Normal View History

2020-01-02 15:13:47 -05:00
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
2020-01-15 09:05:22 -05:00
const url_ = Deno.args[0];
const res = await fetch(url_);
2019-10-27 09:04:42 -04:00
await Deno.copy(Deno.stdout, res.body);