std/examples/curl.ts
123456789101112// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license./** Basic CLI to fetch URLs and log body to console. * * @module */const url_ = Deno.args[0];const res = await fetch(url_);await res.body?.pipeTo(Deno.stdout.writable);