Why Deno?
Deno has a few features which has driven me to invest time into it. In no particular order:
- The security model is compelling.
--allow-net=denolab.com
is required to allow scripts to connect to the web. - Native TypeScript, so no need to install and manage a separate script / config for TypeScript.
- Deno Deploy is dedicated hosting specifically engineered and optimizied for hosting Deno web applications.
Installation
The best source for docs will be the Deno Land homepage, which will link to install instructions somewhere.
For this example, I installed Deno using the generic curl
command for MacOS or Linux. For Windows install, I'll defer to the official docs, as I haven't done development work in Windows for years.
WARNING: Before running the command below, or any similar | sh
command, I highly advise you read through the install script to ensure nothing untowards will happen when exexuting.
Here are the commands used to install Deno in Linux or MacOS:
$ curl -fsSL https://deno.land/x/install/install.sh | sh # Download and install Deno.
$ export DENO_INSTALL="$HOME/.deno" # Tell Deno where it is installed.
$ export PATH="$DENO_INSTALL/bin:$PATH" # Tell your terminal to look for the deno command.
That's all it takes! Check your install by asking Deno for its version with:
$ deno --version
deno 1.29.3 (release, aarch64-apple-darwin)
v8 10.9.194.5
typescript 4.9.4