84f304e5ff8701a412891f8f0f557b8b29b31d07
[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 description: |
7   Deno proves that lightning does strike twice. It's the ease of use of node, the intentional tooling of Go, and built in Rust.
8 ---
9
10 The obligatory Hello World
11
12 ```bash
13 deno run https://deno.land/std/examples/welcome.ts
14 ```
15
16 Run a local file
17
18 ```bash
19 deno run ./hello.ts
20 ```
21
22 Enable [permissions](https://deno.land/manual/getting_started/permissions)
23
24 ```bash
25 deno run --allow-read=./data,./public --allow-write=./data \
26   --allow-net=example.com,example.net ./hello.ts
27 ```
28
29 Format source code, recursively
30
31 ```bash
32 deno fmt ./my-project
33 ```