summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Docs.md10
1 files changed, 10 insertions, 0 deletions
diff --git a/Docs.md b/Docs.md
index b5bb508da..76e819167 100644
--- a/Docs.md
+++ b/Docs.md
@@ -75,6 +75,16 @@ while (true) {
// TODO top level await doesn't work yet.
```
+### Example: Url imports
+
+```ts
+import { printHello } from "https://raw.githubusercontent.com/denoland/deno/master/tests/subdir/print_hello.ts";
+printHello();
+```
+
+The next time you import the same file from same uri it will use the cached
+resource instead of downloading it again.
+
## How to Profile Deno
```sh