1.0.7 • Published 1 year ago

validation-env v1.0.7

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

Manages the environment variables necessary for the application. Loads environment variables from the .env file and checks that all required variables are defined.

Example

Add a list of variables that your application needs, when starting the class, it will check if all your variables exist, if not, an error will appear showing which variables should be added

Install

$ npm i validation-env
import { EnvironmentManager } from 'validation-env';
const envList = ['API_KEY'];
const environmentManager = new EnvironmentManager(envList);

Gets the value of an environment variable.

use static method of class EnvironmentManager

const envList = ['API_KEY'];
const apiKey = EnvironmentManager.getValue('API_KEY');
1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago