Repository navigation
Home
Abhijeet Kumar edited this page Nov 20, 2026
·
1 revision
Welcome to the env-saaf documentation wiki.
env-saaf is a zero-dependency environment variable validator for Node.js. It fails fast at startup with one clear error listing every problem, and returns typed values — so DEBUG=false is a real boolean and PORT is a real number, not strings that bite you in production.
npm install env-saafconst { validateEnv } = require('env-saaf');
const env = validateEnv({
PORT: { type: 'port', required: true },
DEBUG: { type: 'boolean', default: false },
API_URL: { type: 'url', required: true },
});
// env.PORT is a number, env.DEBUG is a real boolean-
Getting Started — install, your first schema, loading a
.envfile -
CLI Guide —
check,scan,exampleandinitcommands, flags and exit codes - Types Reference — every supported type and schema option
-
FAQ and Troubleshooting — common
.envproblems and how env-saaf handles them - Contributing Guide — how to pick an issue and send a pull request
env-saaf Wiki
Español
- Home-es
- Getting-Started-es
- CLI-Guide-es
- Types-Reference-es
- FAQ-and-Troubleshooting-es
- Contributing-Guide-es
Português
- Home-pt-br
- Getting-Started-pt-br
- CLI-Guide-pt-br
- Types-Reference-pt-br
- FAQ-and-Troubleshooting-pt-br
- Contributing-Guide-pt-br
हिंदी
- Home-hi
- Getting-Started-hi
- CLI-Guide-hi
- Types-Reference-hi
- FAQ-and-Troubleshooting-hi
- Contributing-Guide-hi
简体中文
- Home-zh-cn
- Getting-Started-zh-cn
- CLI-Guide-zh-cn
- Types-Reference-zh-cn
- FAQ-and-Troubleshooting-zh-cn
- Contributing-Guide-zh-cn