Deno installation on Arch Linux
What is Deno? deno.land, the official website, tells shortly and impressively:
# pacman -Sy deno
$ deno --version deno 1.12.1 (release, x86_64-unknown-linux-gnu) v8 22.214.171.124 typescript 4.3.5
What is next? There is the official getting started.
For example, run Deno program with a one-liner on the command line:
$ deno run https://deno.land/std/examples/welcome.ts Download https://deno.land/std/examples/welcome.ts Warning Implicitly using latest version (0.102.0) for https://deno.land/std/examples/welcome.ts Download https://deno.land/[email protected]/examples/welcome.ts Check https://deno.land/std/examples/welcome.ts Welcome to Deno!
deno can execute a local
index.ts just as Node.js can. However, it is notable that
deno doesn't create
package-lock.json and even
Here is another example.
$ mkdir my-first-deno $ cd my-first-deno $ touch index.js # or index.ts
Add the line to
You can run it:
$ deno run index.js Hello, world.