deno.land / std@0.166.0 / dotenv / testdata / app_with_restricted_env_access_sync.ts

app_with_restricted_env_access_sync.ts
نووسراو ببینە
1
2
3
4
5
6
7
8
9
10
11
12
import { configSync } from "../mod.ts";
try { const conf = configSync({ restrictEnvAccessTo: ["GREETING"], });
console.log(JSON.stringify(conf, null, 2));} catch (e) { console.log((e as Error).message);}
std

Version Info

Tagged at
a year ago