Skip to content
A tool to install executable deno script.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
README.md
denoget.ts
shebang.ts

README.md

denoget

  • denoget installs executable deno script.

Features

  • Install executable script into ~/.deno/denoget/bin

Supported Environments

  • macOS
  • Linux

Usage

denoget https://denopkg.com/syumai/deno-libs/denoinit/denoinit.ts
# now you can use installed command!
denoinit

Requirements for installing

  • Deno
  • wget

Installing

1. Install denoget

denoget can be installed by using itself.

deno -A https://deno.land/x/denoget/denoget.ts https://deno.land/x/denoget/denoget.ts

2. Add ~/.deno/denoget/bin to PATH

echo 'export PATH="$HOME/.deno/denoget/bin:$PATH"' >> ~/.bashrc # change this to your shell

Create Executable Script

  • Add shebang to top of your deno script.
    • This defines what permissions are needed.
#!/usr/bin/env deno --allow-read --allow-write --allow-env --allow-run
  • Host script on the web.
  • Install script using denoget.
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.