v9.1.0

API reference

Every export of envapt and envapt/legacy, with signatures, parameters, and return types generated from the library's type definitions.

These pages come from the type definitions of the envapt version this site was built from. The guide explains when and why to use each piece.

entrywhat it exports
envaptEnvapter, Converters, the @Envapt decorators, the sources, EnvaptError, and the types
envapt/legacythe same decorators for projects that compile with experimentalDecorators
envapt/confignothing. Importing it loads your .env files into process.env

The Envapter page documents the Node, Bun, and Deno build. On Workers, the browser, and edge runtimes, envapt resolves to the portable build, where Envapter has the same members and its file APIs (envPaths, baseDir, envFileOptions, configureProfiles, resetPaths) warn once and do nothing. Sources explains the two builds.

On this page

No Headings