All languages

JavaScript

You're viewing a free preview. Sign in free to read every script.

Why this exists Twelve factor style applications take their settings from environment variables, which is how Kubernetes, Jenkins and Docker pass configuration in. Environment variables are always strings, and a missing…

Configuration from Environment Variables: Parsing, Validation and Secrets

Load settings from process.env the safe way: defaults, required values, converting strings to numbers and booleans, allowed values, reporting every problem at once, freezing the result and never logging secrets. Plus the built-in --env-file for local development.

Sign in free to read this script, along with the rest of the library.

Sign in free