Chapter 3: The Runtime and Standard Library
Now that we know enough about Deno, we're in a good place to write a few real applications with it. In this chapter, we'll be using no libraries as its primary purpose is to present the runtime APIs and the standard library.
We will be writing small CLI utilities, web servers, and more, always leveraging the power of what the official Deno team created, with no external dependencies.
The Deno namespace will be our starting point as we believe it makes sense to explore what the runtime includes first. Following this idea, we'll also look at the Web APIs that Deno shares with the browser. We'll use setTimeout
to addEventListener
, fetch
, and so on.
Still in the Deno namespace, we will get to know the program lifecycle, interact with the filesystem, and build small command-line programs. Later, we will get to know buffers and understand how they can be used to asynchronously read and write.
We will then take a...