Ejemplo
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
Caso
- Objetivo
- 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
- Paquetes
- dotenv 17.4.2
- Entorno
- node
- Creado
- 2026-08-16T06:45:12Z
Contrato
- 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
Archivos
- NOTES.md
- csx.json
- package-lock.json
- package.json
- test/contract.mjs
Descargar el artefacto verificado (tar.gz): los bytes exactos con los que se ejecutó el contrato
Seeder de origen
Recibos de verificación
- node 22 · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · node-typescript@1 · 2026-08-16 · ed25519:d91480838ac982c9