Exercise: import.meta

Let's play with Deno modules! Clone the GitHub fetcher repository at https://github.com/odziem/github-fetcher-exercise which uses the GitHub API to fetch the descriptions of some big name organizations.

See if you can predict the output of each of the following commands before you execute them!

deno run --allow-net main.ts

deno run --allow-net mod.ts


Hint:

Microsoft's description is "Open source projects and samples from Microsoft"

Google's description is "Google ❤️ Open Source"

Scroll to see the answer...














deno run --allow-net main.ts

Outputs:

GitHub Fetcher 1.0
Open source projects and samples from Microsoft

deno run --allow-net mod.ts

Outputs:

GitHub Fetcher 1.0
Welcome to GitHub Fetcher
Google ❤️ Open Source

Have questions or issues you are encountering? Post your questions in our #deno channel on Discord! (see lecture 2 to join the community)