mirror of
https://github.com/denoland/deno.git
synced 2024-12-30 02:59:11 -05:00
b729bf0ad9
This commit adds support for suffix wildcard for `--allow-env` flag. Specifying flag like `--allow-env=DENO_*` will enable access to all environmental variables starting with `DENO_*`. Closes #24847 --------- Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com> Co-authored-by: David Sherret <dsherret@gmail.com>
5 lines
199 B
JavaScript
5 lines
199 B
JavaScript
console.log(Deno.env.get("MYAPP_HELLO"));
|
|
console.log(Deno.env.get("MYAPP_GOODBYE"));
|
|
Deno.env.set("MYAPP_TEST", "done");
|
|
Deno.env.set("MYAPP_DONE", "done");
|
|
console.log(Deno.env.get("MYAPP_DONE"));
|