1.0.0
@cross/env v1.0.0
Key Features
-
Cross-Runtime Compatibility: Seamlessly manage environment variables across Deno, Bun, and Node.js. This eliminates the need for platform-specific solutions, simplifying development workflows.
-
Unified Interface: Consistent
getEnv
,setEnv
,validateEnv
, and other functions create a familiar experience for developers switching between runtimes. -
Robust Validation: Ensure the presence and correctness of critical environment variables with built-in validation mechanisms and custom validation functions. This catches errors early in the development cycle.
-
.env File Support: Streamline development by loading environment variables from standard
.env
files (customizable for other
filenames), making local development setup more convenient.
For documentation and usage see env on JSR.io
Contributors
Full Changelog: https://github.com/cross-org/env/commits/1.0.0