Skip to main content

den

A better deno cli :p A wrapper of deno cli to give some extra features.

den give the possibility to create a deno.json file and execute some pre-defined commands.

{
    "cmds": {
        "my-ls": "ls",
        "start": "deno run --allow-read --allow-net your_script.ts"
    }
}

You can then run:

  • den cmd to get the list of commands
  • den cmd my-ls or den my-ls to execute the command
  • den cmd my-ls -l or den my-ls -l to execute the command with extra params

You can still run all the commands available in deno, e.g.:

  • den run your_script.ts
  • den --help
  • den eval "console.log(30933 + 404)"

installation

Use deno installer:

deno install -f --allow-run --allow-read https://raw.githubusercontent.com/apiel/den/master/den.ts

To upgrade run den den upgrade.