node-enforce-envvars Enforces existence of necessary envvars Install npm install enforce-envvars --save Example require('enforce-envvars')(['VAR_X', 'VAR_Y', 'VAR_Z']); If any of these 3 variables is not defined a new exception will be thrown.