env
5 modules
env/dotenv.ts
Dotenv file parsing and loading.
Provides parse_dotenv for parsing dotenv-format strings and load_env_file for reading and parsing env files from disk.
env/env_schemas.ts
@fuzdev/fuz_schemaschemas for env var values, matching the Rust spine's readers of the same vars.An env value is a string, so these take a string and output the value it spells: env_integer for whole numbers, EnvStringbool for booleans.
env/load.ts
Generic environment loading from
@fuzdev/fuz_schemaobject schemas.Provides load_env, which reads each key of an object schema with a getter and validates the values. Apps handle error messages themselves (they're always app-specific).
env/mask.ts
Environment value display formatting with secret masking.
Provides utilities for safely displaying env values in logs and startup summaries, masking secrets with a placeholder.
env/update_env_variable.ts
Write updates to
.envfiles while preserving formatting.update_env_content is the one env-file writer: a pure line rebuild that update_env_variable (read, update, write) and dev/setup.ts's setup_env_file both build on, so every value lands quoted and escaped the same way and round-trips through parse_dotenv.