Skip to main content

@chiba/wget@1.0.0
Built and signed on GitHub Actions

wget. file download.

This package works with Deno
This package works with Deno
JSR Score
100%
Published
5 months ago (1.0.0)

deno-wget

JSR JSR Score

File download

Usage

API

$ deno add @chiba/wget
import { wget } from "@chiba/wget";

await wget("https://deno.land/logo.svg");

CLI

$ deno run jsr:@chiba/wget/cli https://deno.land/logo.svg

REPL

$ 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
Built and signed on
GitHub Actions
View transparency log

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";