environment-variable-validator
v1.0.5
Published
Validating type of env variables
Downloads
24
Readme
environment variable validator
Env validator for validating the environment variables in your application
Installation
Using npm
If you prefer to use npm, open your terminal and run the following command:
npm install environment-variable-validator
Using Yarn
If you prefer Yarn, open your terminal and run the following command:
yarn add environment-variable-validator
How to use
Node js
import { validate_env_variable } from 'environment-variable-validator'
//Passing env variables and its types for validation
validate_env_variable({
DATABASE_URL: 'string'
})