summaryrefslogtreecommitdiff
path: root/docs/getting_started
diff options
context:
space:
mode:
Diffstat (limited to 'docs/getting_started')
-rw-r--r--docs/getting_started/first_steps.md10
-rw-r--r--docs/getting_started/permissions.md4
-rw-r--r--docs/getting_started/typescript.md2
3 files changed, 8 insertions, 8 deletions
diff --git a/docs/getting_started/first_steps.md b/docs/getting_started/first_steps.md
index 4a551c415..7bb51bb15 100644
--- a/docs/getting_started/first_steps.md
+++ b/docs/getting_started/first_steps.md
@@ -23,7 +23,7 @@ console.log("Welcome to Deno 🦕");
Try the program:
```shell
-deno run https://deno.land/std/examples/welcome.ts
+deno run https://deno.land/std@$STD_VERSION/examples/welcome.ts
```
### Making an HTTP request
@@ -59,7 +59,7 @@ Let's walk through what this application does:
Try it out:
```shell
-deno run https://deno.land/std/examples/curl.ts https://example.com
+deno run https://deno.land/std@$STD_VERSION/examples/curl.ts https://example.com
```
You will see this program returns an error regarding network access, so what did
@@ -70,7 +70,7 @@ permission to do certain 'privileged' actions, such as access the network.
Try it out again with the correct permission flag:
```shell
-deno run --allow-net=example.com https://deno.land/std/examples/curl.ts https://example.com
+deno run --allow-net=example.com https://deno.land/std@$STD_VERSION/examples/curl.ts https://example.com
```
### Reading a file
@@ -102,7 +102,7 @@ I/O streams in Deno.
Try the program:
```shell
-deno run --allow-read https://deno.land/std/examples/cat.ts /etc/passwd
+deno run --allow-read https://deno.land/std@$STD_VERSION/examples/cat.ts /etc/passwd
```
### TCP server
@@ -124,7 +124,7 @@ For security reasons, Deno does not allow programs to access the network without
explicit permission. To allow accessing the network, use a command-line flag:
```shell
-deno run --allow-net https://deno.land/std/examples/echo_server.ts
+deno run --allow-net https://deno.land/std@$STD_VERSION/examples/echo_server.ts
```
To test it, try sending data to it with netcat:
diff --git a/docs/getting_started/permissions.md b/docs/getting_started/permissions.md
index 72cd9d6d6..70c3c2bd1 100644
--- a/docs/getting_started/permissions.md
+++ b/docs/getting_started/permissions.md
@@ -47,7 +47,7 @@ directory, however the execution fails as the process was attempting to access a
file in the `/etc` directory:
```shell
-$ deno run --allow-read=/usr https://deno.land/std/examples/cat.ts /etc/passwd
+$ deno run --allow-read=/usr https://deno.land/std@$STD_VERSION/examples/cat.ts /etc/passwd
error: Uncaught PermissionDenied: read access to "/etc/passwd", run again with the --allow-read flag
â–º $deno$/dispatch_json.ts:40:11
at DenoError ($deno$/errors.ts:20:5)
@@ -57,7 +57,7 @@ error: Uncaught PermissionDenied: read access to "/etc/passwd", run again with t
Try it out again with the correct permissions by allow-listing `/etc` instead:
```shell
-deno run --allow-read=/etc https://deno.land/std/examples/cat.ts /etc/passwd
+deno run --allow-read=/etc https://deno.land/std@$STD_VERSION/examples/cat.ts /etc/passwd
```
`--allow-write` works the same as `--allow-read`.
diff --git a/docs/getting_started/typescript.md b/docs/getting_started/typescript.md
index 7066ef0c7..2fb00f98f 100644
--- a/docs/getting_started/typescript.md
+++ b/docs/getting_started/typescript.md
@@ -10,7 +10,7 @@ no "magical" module resolution. Instead, imported modules are specified as files
directly imported. E.g.
```
-import { Response } from "https://deno.land/std@0.53.0/http/server.ts";
+import { Response } from "https://deno.land/std@$STD_VERSION/http/server.ts";
import { queue } from "./collections.ts";
```