Skip to content

dudasaus/env-or-throw

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

envOrThrow

JSR Score

Install

deno add jsr:@dudasaus/env-or-throw

Usage

import { envOrThrow } from "@dudasaus/env-or-throw";

const homeDirectoryPath = envOrThrow("HOME");
console.log("Home: ", homeDirectoryPath);

Why

Sometimes you just want the program to crash if you don't have a certain environment variable set.

About

Deno package to get an environment variable or throw an error.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published