std/dotenv/testdata/app_with_restricted_env_access_sync.ts
123456789101112import { 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);}