deno.land / std@0.173.0 / examples / curl.ts

نووسراو ببینە
1
2
3
4
5
6
7
8
9
10
11
12
// 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);
std

Version Info

Tagged at
a year ago