mirror of
https://github.com/denoland/deno.git
synced 2024-12-03 17:08:35 -05:00
22 lines
1.4 KiB
JavaScript
22 lines
1.4 KiB
JavaScript
|
console.log(Deno.permissions.querySync({ name: "env" }));
|
||
|
console.log(Deno.permissions.querySync({ name: "env", variable: "FOO" }));
|
||
|
console.log(Deno.permissions.querySync({ name: "env", variable: "BAR" }));
|
||
|
console.log(Deno.permissions.querySync({ name: "read" }));
|
||
|
console.log(Deno.permissions.querySync({ name: "read", path: "/foo" }));
|
||
|
console.log(Deno.permissions.querySync({ name: "read", path: "/bar" }));
|
||
|
console.log(Deno.permissions.querySync({ name: "write" }));
|
||
|
console.log(Deno.permissions.querySync({ name: "write", path: "/foo" }));
|
||
|
console.log(Deno.permissions.querySync({ name: "write", path: "/bar" }));
|
||
|
console.log(Deno.permissions.querySync({ name: "ffi" }));
|
||
|
console.log(Deno.permissions.querySync({ name: "ffi", path: "/foo" }));
|
||
|
console.log(Deno.permissions.querySync({ name: "ffi", path: "/bar" }));
|
||
|
console.log(Deno.permissions.querySync({ name: "run" }));
|
||
|
console.log(Deno.permissions.querySync({ name: "run", command: "foo" }));
|
||
|
console.log(Deno.permissions.querySync({ name: "run", command: "bar" }));
|
||
|
console.log(Deno.permissions.querySync({ name: "sys" }));
|
||
|
console.log(Deno.permissions.querySync({ name: "sys", kind: "hostname" }));
|
||
|
console.log(Deno.permissions.querySync({ name: "sys", kind: "loadavg" }));
|
||
|
console.log(Deno.permissions.querySync({ name: "net" }));
|
||
|
console.log(Deno.permissions.querySync({ name: "net", host: "127.0.0.1" }));
|
||
|
console.log(Deno.permissions.querySync({ name: "net", host: "192.168.0.1" }));
|