summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorAndy Hayden <andyhayden1@gmail.com>2019-03-06 07:24:53 -0800
committerRyan Dahl <ry@tinyclouds.org>2019-03-06 10:24:53 -0500
commitd29957ad17956016c35a04f5f1f98565e58e8a2e (patch)
tree05c4d2e063fd366dd0b9304b13e9a75190c544f7 /examples
parentc6075f373e42a17903e857b9b28ff983d571d43f (diff)
Replace deno.land/x/ with deno.land/std/ (denoland/deno_std#239)
Original: https://github.com/denoland/deno_std/commit/0fc13fffbdb59d6aee2b11ff17a5de382273126b
Diffstat (limited to 'examples')
-rw-r--r--examples/README.md6
-rwxr-xr-xexamples/gist.ts2
-rw-r--r--examples/ws.ts4
3 files changed, 6 insertions, 6 deletions
diff --git a/examples/README.md b/examples/README.md
index 874626ec4..7f828093a 100644
--- a/examples/README.md
+++ b/examples/README.md
@@ -1,11 +1,11 @@
# Deno Example Programs
-These files are accessible for import via "https://deno.land/x/examples/".
+These files are accessible for import via "https://deno.land/std/examples/".
Try it:
```
-> deno https://deno.land/x/examples/gist.ts README.md
+> deno https://deno.land/std/examples/gist.ts README.md
```
## Alias Based Installation
@@ -14,5 +14,5 @@ Add this to your `.bash_profile`
```
export GIST_TOKEN=ABC # Generate at https://github.com/settings/tokens
-alias gist="deno https://deno.land/x/examples/gist.ts --allow-net --allow-env"
+alias gist="deno https://deno.land/std/examples/gist.ts --allow-net --allow-env"
```
diff --git a/examples/gist.ts b/examples/gist.ts
index f64f69226..fb6837059 100755
--- a/examples/gist.ts
+++ b/examples/gist.ts
@@ -2,7 +2,7 @@
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license.
const { args, env, exit, readFile } = Deno;
-import { parse } from "https://deno.land/x/flags/mod.ts";
+import { parse } from "https://deno.land/std/flags/mod.ts";
function pathBase(p: string): string {
const parts = p.split("/");
diff --git a/examples/ws.ts b/examples/ws.ts
index f25a15687..83e890bc0 100644
--- a/examples/ws.ts
+++ b/examples/ws.ts
@@ -1,10 +1,10 @@
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license.
-import { serve } from "https://deno.land/x/http/mod.ts";
+import { serve } from "https://deno.land/std/http/mod.ts";
import {
acceptWebSocket,
isWebSocketCloseEvent,
isWebSocketPingEvent
-} from "https://deno.land/x/ws/mod.ts";
+} from "https://deno.land/std/ws/mod.ts";
async function main(): Promise<void> {
console.log("websocket server is running on 0.0.0.0:8080");