make a new package for helpers
This commit is contained in:
5
packages/helpers/get-environment-value.ts
Normal file
5
packages/helpers/get-environment-value.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
import { raise } from "./raise.js"
|
||||
|
||||
export function getEnvironmentValue(name: string) {
|
||||
return process.env[name] ?? raise(`Missing environment variable: ${name}`)
|
||||
}
|
||||
Reference in New Issue
Block a user