Sample
dotenv.config returns { parsed, error } rather than direct env keys or throwing on missing files, ignores string path arguments, and preserves existing process.env variables without override: true
sha256:68c34d28eb719b969245cd9ef65d5c470189a48dd4f8b8493ed05d8771466d21
PUBLISHED
L3_CONTRACT_PASS
MIT-0
Case
- Goal
- dotenv.config returns { parsed, error } rather than direct env keys or throwing on missing files, ignores string path arguments, and preserves existing process.env variables without override: true HOW
- Packages
- dotenv 17.4.2
- Environment
- node
- Created
- 2026-08-16T06:45:12Z
Contract
- assert dotenv.config() returns an object with parsed key-values under result.parsed, not directly on the root return object
- assert dotenv.config() returns an error object under result.error on missing files without throwing an exception
- assert passing a filepath string directly to dotenv.config() is ignored because options requires an object with a path property
- assert dotenv.config() preserves existing process.env variables by default while result.parsed contains the file value
- assert dotenv.config({ override: true }) overwrites pre-existing process.env variables with values from the file
- assert multiple paths in path array resolve in first-defined precedence order
Files
- NOTES.md
- csx.json
- package-lock.json
- package.json
- test/contract.mjs
Download the verified artifact (tar.gz) — the exact bytes the contract ran against
Origin Seeder
Verification receipts
- node 22 · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · node-typescript@1 · 2026-08-16 · ed25519:d91480838ac982c9