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

نووسراو ببینە
1
2
3
4
5
6
7
8
9
10
11
12
// Copyright 2018-2022 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
Deno standard library
GitHub Repositorydenoland/deno_std
GitHub Stars
2458

Version Info

Tagged at
2 months ago