Skip to content
Env Reader
Language:en Author:AtomForge
typescript configuration environment

@atom-forge/env-reader

This book shows how to read environment configuration in TypeScript applications: from installation to a typed configuration object, from URL mapping to filesystem paths.

EnvReader reads the current values of process.env with synchronous methods. Errors surface when you call those methods, so to validate at startup you must build the configuration when the application starts.

The book is for developers of Node-compatible TypeScript applications (Node.js, Bun, Deno with Node compatibility) who want their configuration typed and validated in one place.

What you get

  • Required and default configuration values.
  • Parsing of strings, numbers, booleans, lists, and regular expressions.
  • URL objects and typed URL component mapping.
  • Resolution of file and directory paths.
  • Deeply readonly TypeScript types through asReadonly.