From 2cf3a89f63c7bc7cfd9404f779b796c29c8e9598 Mon Sep 17 00:00:00 2001 From: Nisheet Sinvhal Date: Sat, 3 Nov 2018 21:16:48 +0530 Subject: Add documentation as per #1105 (#1116) --- Docs.md | 10 ++++++++++ 1 file changed, 10 insertions(+) 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 -- cgit v1.2.3