Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/syumai/denoget
A tool to install executable deno script.
https://github.com/syumai/denoget
Last synced: 2 months ago
JSON representation
A tool to install executable deno script.
- Host: GitHub
- URL: https://github.com/syumai/denoget
- Owner: syumai
- Created: 2019-02-16T06:34:58.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-06-22T16:22:41.000Z (over 5 years ago)
- Last Synced: 2024-08-03T10:20:49.250Z (4 months ago)
- Language: TypeScript
- Size: 29.3 KB
- Stars: 10
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-deno - denoget - denoget安装可执行的Deno脚本。 (Uncategorized / Uncategorized)
- awesome-deno-cn - @syumai/denoget
- awesome-deno - denoget - Denoget installs executable Deno script.![GitHub stars](https://img.shields.io/github/stars/syumai/denoget?style=plastic) (Tools / Online Playgrounds)
README
# DEPRECATED
* This command was added to `deno_std` as [`installer`](https://github.com/denoland/deno_std/tree/master/installer) and now `deno install` is available.
* Please use them instead of denoget.# denoget
- denoget installs executable deno script.
## Features
- Install executable script into ~/.deno/denoget/bin
## Supported Environments
- macOS
- Linux## Usage
```sh
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.
```sh
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.```sh
#!/usr/bin/env deno --allow-read --allow-write --allow-env --allow-run
```- Host script on the web.
- Install script using denoget.