Skip to main content

Import

Constructor

Config options

Methods

Examples

Basic usage

Prefix scoping

Automatically prepend a prefix to every lookup so you don’t repeat it.

Defaults and required variables

Parsing lists

Environment detection

Startup validation

require() throws immediately if the variable is missing. Use validate() at startup to check all required variables at once and get a single, actionable error message.
Use the prefix option in monorepos or multi-service setups to isolate each service’s config namespace without changing variable names in code.