Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/dbin/mod.ts>Options

Library to download binary files from GitHub releases detecting the correct platform.
Latest
interface Options
import { type Options } from "https://deno.land/x/dbin@v0.2.0/mod.ts";

Properties

pattern: string

Pattern to build the final URL download. It can contains {version} and {target} placeholders.

optional
checksumPattern: string

Checksum pattern

version: string

Version to download. It's used to replace the {version} placeholder in the pattern.

targets: Target[]

List of different targets.

dest: string

Path to save the binary file. In Windows environments, the extension ".exe" is appended automatically.

optional
overwrite: boolean

Set true to override the binary file, if it already exists

optional
chmod: number

The permissions applied to the binary file (ignored by Windows)

optional
os: OS

To force a specific OS, instead of getting it from Deno.build.os

optional
arch: Arch

To force a specific arch, instead of getting it from Deno.build.arch