a module to assert enviornmental variables are set
npm i @betaquick/check-env
require('dotenv').config();
const cowsay = require('cowsay');
const checkEnv = require('@betaquick/check-env');
try {
checkVariables(process.argv.slice(2));
} catch (err) {
console.error(cowsay.say({
text: err.message
}));
process.exit(1);
}
npm run test