File download
$ deno add @chiba/wget
import { wget } from "@chiba/wget"; await wget("https://deno.land/logo.svg");
$ deno run jsr:@chiba/wget/cli https://deno.land/logo.svg
$ deno > import {wget} from "jsr:@chiba/wget" undefined > await wget("https://deno.land/logo.svg"); { response: Response { body: ReadableStream { locked: false }, bodyUsed: true, headers: Headers { ... }, ok: true, redirected: false, status: 200, statusText: "OK", url: "https://deno.land/logo.svg" }, outputDocument: "logo.svg" } > $ ls logo.svg
Add Package
deno add jsr:@chiba/wget
Import symbol
import * as wget from "@chiba/wget";
---- OR ----
Import directly with a jsr specifier
import * as wget from "jsr:@chiba/wget";