adityanandanx/ecom

load environment variables through a config object

Offen

#7 geöffnet am 26.03.2024

 (0 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)TypeScript (1 Fork)auto 404
backendenhancementgood first issue

Repository-Metriken

Stars
 (0 Sterne)
PR-Merge-Metriken
 (Keine gemergten PRs in 30 T)

Beschreibung

I should be able to access typed environment variables by-

import config from "./config";

console.log(config.TEST_USER_TOKEN);

and it must raise appropriate errors if the env variable does not exist.

Contributor Guide