Quickstart
Let's get you started with a few simple steps
#Install
#Configure your project
Enable strict mode for the best typesafety:
ark.env
is built on top of ArkType. Follow the ArkType setup instructions to configure your project.
#Define the schema
Add a schema to make your environment variables validated and typesafe:
#Define environment variables
Create a .env
file in your project root with some environment variables:
#Use in your code
Import and use your validated and typed environment variables. For example, you might have a file like database.ts
: