diff options
author | Nisheet Sinvhal <nisheet1.sinvhal@gmail.com> | 2018-11-03 21:16:48 +0530 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2018-11-03 08:46:48 -0700 |
commit | 2cf3a89f63c7bc7cfd9404f779b796c29c8e9598 (patch) | |
tree | 0bd6e59831a0a8125e5c4ea208722e203ac8747f | |
parent | b9914c31139546336beed45b4764777fd6a5fcd3 (diff) |
Add documentation as per #1105 (#1116)
-rw-r--r-- | Docs.md | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -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 |