Summary
As we go through the book, our knowledge of Deno gets more practical and we start to use it for use cases that are closer to the real world. That was what this chapter was about.
We started the chapter by learning about some fundamental characteristics of the runtime, namely the program lifecycle, and how Deno sees module stability and versioning. We rapidly moved on to the Web APIs provided by Deno by writing a simple program that fetches the Deno logo from the website, converts it to base64, and puts it into an HTML page.
Then, we got into the Deno
namespace and explored some of its low-level functionality. We built a couple of examples with the filesystem API and ended up building a rudimentary copy of the ls
command with it.
Buffers are things that are heavily used in the Node world, with their capabilities to perform asynchronous read and write behavior. As we know, Deno shares many use cases with Node.js, and that made it impossible to not talk about buffers...