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.
| entry | what it exports |
|---|---|
envapt | Envapter, Converters, the @Envapt decorators, the sources, EnvaptError, and the types |
envapt/legacy | the same decorators for projects that compile with experimentalDecorators |
envapt/config | nothing. 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.