mirror of
https://github.com/denoland/deno.git
synced 2025-09-27 12:49:10 +00:00
BREAKING: Map-like interface for Deno.env (#4942)
This commit is contained in:
parent
17cf2ecdac
commit
721a4ad59d
9 changed files with 53 additions and 58 deletions
|
@ -7,7 +7,7 @@ function pathBase(p: string): string {
|
|||
return parts[parts.length - 1];
|
||||
}
|
||||
|
||||
const token = Deno.env()["GIST_TOKEN"];
|
||||
const token = Deno.env.get("GIST_TOKEN");
|
||||
if (!token) {
|
||||
console.error("GIST_TOKEN environmental variable not set.");
|
||||
console.error("Get a token here: https://github.com/settings/tokens");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue