Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Deno allow all permissions

Tags:

deno

I often find myself typing at least two or three permission options when playing with Deno:

deno run --allow-net --allow-read --allow-env app.ts

There's a way to escape explicit permissions.

like image 393
Evandro Pomatti Avatar asked May 18 '20 20:05

Evandro Pomatti


1 Answers

You can use: --allow-all or the short option -A to allow all permissions.

Have in mind that it will include all of the following permissions:

--allow-env                    
    Allow environment access

--allow-hrtime                 
    Allow high resolution time measurement

--allow-net=<allow-net>        
    Allow network access

--allow-plugin                 
    Allow loading plugins

--allow-read=<allow-read>      
    Allow file system read access

--allow-run                    
    Allow running subprocesses

--allow-write=<allow-write>    
    Allow file system write access
like image 58
Marcos Casagrande Avatar answered Oct 05 '22 18:10

Marcos Casagrande