Env validator for validating the environment variables in your application
If you prefer to use npm, open your terminal and run the following command:
npm install environment-variable-validator
If you prefer Yarn, open your terminal and run the following command:
yarn add environment-variable-validator
import { validate_env_variable } from 'environment-variable-validator'
//Passing env variables and its types for validation
validate_env_variable({
DATABASE_URL: 'string'
})