diff options
author | Luca Casonato <lucacasonato@yahoo.com> | 2020-05-10 03:09:42 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-10 03:09:42 +0200 |
commit | 45f9b32ef0416e0477e9f5335df49ca3cccdb6eb (patch) | |
tree | b04cab2d36b39932320f9e95537910b8742f32f7 /docs/getting_started | |
parent | f6b617784f53497b0c59d6f6f1370cb2223e38f3 (diff) |
Docs for deno test + minor other changes (#5185)
* Added fs events example.
* Added docs for `deno test`.
* Renamed file server example.
* Unified markdown code types.
* Removed plugin topics from TOC.
* Fixed links.
Diffstat (limited to 'docs/getting_started')
-rw-r--r-- | docs/getting_started/first_steps.md | 12 | ||||
-rw-r--r-- | docs/getting_started/typescript.md | 2 |
2 files changed, 7 insertions, 7 deletions
diff --git a/docs/getting_started/first_steps.md b/docs/getting_started/first_steps.md index 74dbae1b4..8c9e4ea0a 100644 --- a/docs/getting_started/first_steps.md +++ b/docs/getting_started/first_steps.md @@ -17,13 +17,13 @@ and use modern features wherever possible. Because of this browser compatibility a simple `Hello World` program is actually no different to one you can run in the browser: -```typescript +```ts console.log("Welcome to Deno 🦕"); ``` Try the program: -```bash +```shell deno run https://deno.land/std/examples/welcome.ts ``` @@ -37,7 +37,7 @@ Just like in the browser you can use the web standard [`fetch`](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API) API to make HTTP calls: -```typescript +```ts const url = Deno.args[0]; const res = await fetch(url); @@ -60,7 +60,7 @@ Lets walk through what this application does: Try it out: -```bash +```shell deno run https://deno.land/std/examples/curl.ts https://example.com ``` @@ -71,7 +71,7 @@ programs the permission to do certain 'privileged' actions like network access. Try it out again with the correct permission flag: -```bash +```shell deno run --allow-net=example.com https://deno.land/std/examples/curl.ts https://example.com ``` @@ -103,7 +103,7 @@ I/O streams in Deno. Try the program: -```bash +```shell deno run --allow-read https://deno.land/std/examples/cat.ts /etc/passwd ``` diff --git a/docs/getting_started/typescript.md b/docs/getting_started/typescript.md index ebe1e5e70..35a513b37 100644 --- a/docs/getting_started/typescript.md +++ b/docs/getting_started/typescript.md @@ -100,7 +100,7 @@ be provided to Deno on program execution. You need to explicitly tell Deno where to look for this configuration by setting the `-c` argument when executing your application. -```bash +```shell deno run -c tsconfig.json mod.ts ``` |