Skip to content

Latest commit

 

History

History
22 lines (13 loc) · 901 Bytes

README.md

File metadata and controls

22 lines (13 loc) · 901 Bytes

Check a required environment variable

JSR @frytg/check-required-env ci

Simply check if a certain required environment variable is set. If not, throw an error and exit the process.

import { checkRequiredEnv } from '@frytg/check-required-env';

checkRequiredEnv('MY_IMPORTANT_ENV_VAR');

It uses the logger from @frytg/logger to log the error and exit the process (with code 1).

Author

Created by @frytg / frytg.digital

License

Unlicense - also see unlicense.org