refactor: finish moving ssh-* scripts to own installers
[webi-installers/.git] / deno / README.md
1 ---
2 title: Deno
3 homepage: https://github.com/denoland/deno
4 tagline: |
5   Deno: A secure runtime for JavaScript and TypeScript.
6 ---
7
8 To update or switch versions, run `webi deno@stable` (or `@v1.13`, `@beta`,
9 etc).
10
11 ## Cheat Sheet
12
13 > Deno proves that lightning does strike twice. It's the ease of use of node,
14 > the intentional tooling of Go, and built in Rust.
15
16 ### Hello World
17
18 The obligatory Hello World
19
20 ```bash
21 deno run https://deno.land/std/examples/welcome.ts
22 ```
23
24 Run a local file
25
26 ```bash
27 deno run ./hello.ts
28 ```
29
30 Enable [permissions](https://deno.land/manual/getting_started/permissions)
31
32 ```bash
33 deno run --allow-read=./data,./public --allow-write=./data \
34   --allow-net=example.com,example.net ./hello.ts
35 ```
36
37 Format source code, recursively
38
39 ```bash
40 deno fmt ./my-project
41 ```