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