Quick start
Get up and running with Env Core in just a few minutes. This guide will walk you through setting up environment variable validation in your Node.js project.Create your environment schema
Define a schema that describes your environment variables. Create a file like
envSchema.js or include it directly in your application:- Use simple types (
Number,String,Boolean) for required variables - Use objects with
type,default, andrequiredfor more control
What happens during validation?
When you callvalidateEnv(), Env Core:
- Loads environment variables from your
.envfile (or usesprocess.env) - Checks that all required variables are present
- Validates that each variable matches its expected type
- Applies default values for missing optional variables
- Returns a fully typed object with your validated environment
Next steps
Schema definition
Learn about all the ways to define your environment schema
Framework guides
See how to integrate Env Core with Express.js, NestJS, and more
Type safety
Understand how TypeScript type inference works
API reference
Explore the complete API documentation