4 ms·
Here you go! One example Deno script with permissions embedded in the shebang line: #!/usr/bin/env -S /usr/bin/deno run --allow-net=api.github.com const js
by chaorace 5y ago
Here you go! One example Deno script with permissions embedded in the shebang line:
#!/usr/bin/env -S /usr/bin/deno run --allow-net=api.github.com
const jsonResponse = await fetch("https://api.github.com/users/denoland");
const jsonData = await jsonResponse.json();
console.log(jsonData);
- tpoacher 5y agoAh, I thought you were referring to filesystem permissions, which confused me! This makes sense. Thanks!