Config and environment
@cogs/node-pkg
Resolve and spawn a node_modules/.bin binary from a package.json bin field, walking the directory tree up and down — makes hoisted-binary proxy scripts work correctly in a monorepo
Resolve and spawn a node_modules/.bin binary from a package.json bin field, walking the directory tree up and down — makes hoisted-binary proxy scripts work correctly in a monorepo
More packages
All packages →- 01
@cogs/config
Framework-agnostic layered-dotenv loader — resolves the canonical .env file chain, expands ${VAR} references, and folds values into process.env with deploy-injected variables staying authoritative. Dual ESM+CJS so it works from an ESM --import preload or a CJS --require hook (dd-trace and other one-offs)
- 02
@cogs/environment
Typed env registry machinery — a generic factory that turns a per-app variable catalog into a Zod runtime schema, startup validators, and a public-only client snapshot. Ships the framework, not the variable list
- 03
@cogs/env-doctor
Render env-var quoted-secret diagnosis and single-key fix — never bulk-replace.