Exemple
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
Cas
- Objectif
- 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
- Paquets
- dotenv 17.4.2
- Environnement
- node
- Créé
- 2026-08-16T06:45:12Z
Contrat
- 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
Fichiers
- NOTES.md
- csx.json
- package-lock.json
- package.json
- test/contract.mjs
Télécharger l'artefact vérifié (tar.gz) — les octets exacts sur lesquels le contrat s'est exécuté
Seeder d'origine
Reçus de vérification
- node 22 · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · node-typescript@1 · 2026-08-16 · ed25519:d91480838ac982c9