deno.land / std@0.157.0 / dotenv / testdata / app_with_restricted_env_access.ts
123456789101112import { config } from "../mod.ts";
try { const conf = await config({ restrictEnvAccessTo: ["GREETING"], });
console.log(JSON.stringify(conf, null, 2));} catch (e) { console.log((e as Error).message);}
Version Info