Permissions
Learn to use permissions for a Deno program.
We'll cover the following...
Previously, we came across Deno’s permissions for the first time when we wrote our first HTTP server. We had to give our script permission to access the network at the time. Since then, we’ve used them a few times without knowing too much about how they work.
In this lesson, we’ll explore how permissions work. We’ll learn what permissions exist and how to configure them.
List of permissions in Deno
If we run deno run --help
, we get the help output for the run
command, which is where, among other things, certain permissions are listed. To make this easier, we’ll list all the existing permissions and briefly explain each.
-A
, ...