2021-09-13 14:19:10 -04:00
|
|
|
## Permissions
|
|
|
|
|
|
|
|
Deno is secure by default. Therefore,
|
|
|
|
unless you specifically enable it, a
|
|
|
|
program run with Deno has no file,
|
|
|
|
network, or environment access. Access
|
|
|
|
to security sensitive functionality
|
2024-04-20 19:54:07 -04:00
|
|
|
requires that permissions have been
|
2021-09-13 14:19:10 -04:00
|
|
|
granted to an executing script through
|
|
|
|
command line flags, or a runtime
|
|
|
|
permission prompt.
|
|
|
|
|
|
|
|
For the following example `mod.ts` has
|
|
|
|
been granted read-only access to the
|
|
|
|
file system. It cannot write to the file
|
|
|
|
system, or perform any other security
|
|
|
|
sensitive functions.
|