d, a Deno-invoking version manager for Deno
This is a simple shell script that invokes a specified Deno version, including downloading & extracting it if it doesn't exist. It's similar in spirit to the various dvm forks, but is written in sh
(not even bash
, so should work everywhere, except Windows, for which MRs are welcome).
Examples below assume d
is in your path.
Pass all arguments along the latest version of deno
:
$ d --version # delegates to latest deno
deno 1.1.0
v8 8.4.300
typescript 3.9.2
Pass all arguments along to a specific version of deno
:
$ d --use 1.0.0 -- --version # use a specific version of deno
deno 1.0.0
v8 8.4.300
typescript 3.9.2
Invoke a script using the latest version of deno:
$ d run https://deno.land/std/examples/welcome.ts
Download https://deno.land/std/examples/welcome.ts
Warning Implicitly using master branch https://deno.land/std/examples/welcome.ts
Compile https://deno.land/std/examples/welcome.ts
Welcome to Deno 🦕
Currently in prerelease form.
Available at https://gitlab.com/northscaler-public/d.
File issues at https://gitlab.com/northscaler-public/d/-/issues.
Mirrored to https://github.com/northscaler/d.
Enjoy!
Top comments (0)