0
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-03-03 09:31:22 -05:00

Add documentation as per #1105 (#1116)

This commit is contained in:
Nisheet Sinvhal 2018-11-03 21:16:48 +05:30 committed by Ryan Dahl
parent b9914c3113
commit 2cf3a89f63

10
Docs.md
View file

@ -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