Attributes
Includes Deno configuration
Repository
Current version released
2 years ago
Dependencies
std
Versions
🐣 Hatch
A meta-command to create a command that fetches a file or directory from a remote repository. Zero dependencies rather than the Deno runtime.
Requirements
Supported hosts
- GitHub (via
api.github.com)
Usage
Create a hatch command
Via deno install
deno install --allow-read=. --allow-write=. --allow-net=api.github.com\
https://deno.land/x/hatch/gh/hatch.ts [...]As a shell alias
alias hatch='deno run --allow-read=. --allow-write=. --allow-net=api.github.com\
https://deno.land/x/hatch/gh/hatch.ts [...]'Examples
Flags for permissions are omitted and URL is shortened in the following examples for readability.
Create hatch for deno directory in hasundue/incubator repository
$ deno install gh/hatch.ts hasundue/incubator@main/deno# Create `README.md` in the current directory
$ hatch README.md# Copy `.github/workflows` directory recursively into the current directory
$ hatch .github/workflowsCreate hatch for hasundue/incubator repository
$ deno install gh/hatch.ts hasundue/incubator# Equivalent to `hatch README.md` in the previous example
$ hatch deno README.mdCreate hatch for repositories owned by hasundue
$ deno install gh/hatch.ts hasundue# Equivalent to `hatch README.md` in the first example
$ hatch incubator/deno README.md